class Elevage::CLI
Start of main CLI
Public Instance Methods
list(item)
click to toggle source
Process the `list` command
# File lib/elevage.rb, line 31 def list(item) # errors handled in class methods if LIST_CMDS.include?(item) puts Elevage::Platform.new.send(item).to_yaml else fail(IOError, ERR[:not_list_cmd]) unless File.file?(ENV_FOLDER + item + '.yml') environment = Elevage::Environment.new(item) puts options[:nodes] ? environment.list_nodes : environment end end
version()
click to toggle source
Display the version
# File lib/elevage.rb, line 21 def version puts VERSION end