class Picobox::Box
Attributes
os[R]
Public Class Methods
new(os)
click to toggle source
# File lib/picobox/box.rb, line 8 def initialize(os) @os = os end
Public Instance Methods
install(type = nil)
click to toggle source
# File lib/picobox/box.rb, line 12 def install(type = nil) return if type.nil? accept(Commands::AddBox.new(type)) rescue Errors::BoxNotImplemented display_box_not_available type list # called like for exception handling rescue StandardError => e display_error e exit 1 end
list()
click to toggle source
# File lib/picobox/box.rb, line 23 def list() accept(Commands::UpdatePackages.new) accept(Commands::ListBoxes.new) rescue StandardError => e display_error e exit 1 end