class Bixby::Provision::System
Constants
- EXPORTS
Attributes
packager[R]
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
Bixby::Provision::Base::new
# File lib/bixby/provision/dsl/system.rb, line 16 def initialize(*args) super @packager = if ubuntu? then Packager::Apt.new(self) elsif centos? or amazon? then Packager::Yum.new(self) end end
Public Instance Methods
package(*packages)
click to toggle source
# File lib/bixby/provision/dsl/system.rb, line 35 def package(*packages) packages.flatten! logger.info "[sys] installing packages: " + packages.join(" ") packager.install(*packages) end
Also aliased as: packages
refresh_packages()
click to toggle source
# File lib/bixby/provision/dsl/system.rb, line 25 def refresh_packages logger.info "[sys] refresh_packages" packager.refresh end
repo(name, opts={})
click to toggle source
# File lib/bixby/provision/dsl/system.rb, line 42 def repo(name, opts={}) if packager.install_repo(name, opts) then refresh_packages end end
upgrade_system()
click to toggle source
# File lib/bixby/provision/dsl/system.rb, line 30 def upgrade_system logger.info "[sys] upgrade_system" packager.upgrade_system end