class RBT::UpdateSlackpkg

Constants

URL
#

URL

This URL is hardcoded. Perhaps in the future we may transition into a dynamic-query instead.

For the FTP listing of most recent version of slackpkg, try this:

https://slackpkg.org/stable/?C=M;O=D
#

Public Class Methods

[](i = '') click to toggle source
#

UpdateSlackpkg[]

#
# File lib/rbt/linux/slackware/update_slackpkg.rb, line 79
def self.[](i = '')
  new(i)
end
new( commandline_arguments = nil, run_already = true ) click to toggle source
#

initialize

#
# File lib/rbt/linux/slackware/update_slackpkg.rb, line 40
def initialize(
    commandline_arguments = nil,
    run_already           = true
  )
  reset
  set_commandline_arguments(
    commandline_arguments
  )
  run if run_already
end

Public Instance Methods

reset() click to toggle source
#

reset (reset tag)

#
Calls superclass method RBT::Base#reset
# File lib/rbt/linux/slackware/update_slackpkg.rb, line 54
def reset
  super()
end
run() click to toggle source
#

run (run tag)

#
# File lib/rbt/linux/slackware/update_slackpkg.rb, line 68
def run
  e 'Trying to update the slackpkg version (on Slackware) next.'
  url = url?
  wget(url)
  target = File.basename(url)
  esystem "installpkg #{target}"
end
url?() click to toggle source
#

url?

#
# File lib/rbt/linux/slackware/update_slackpkg.rb, line 61
def url?
  URL
end