Class: Kraaken::Cli::Server
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#list ⇒ Object
12 13 14 15 16 |
# File 'lib/kraaken/cli/server.rb', line 12 def list config.cloud.servers.each do |server| logger.info "#{server.name} (#{server.status}) #{server.ip} #{server.public_ip}" end end |
#provision(name) ⇒ Object
6 7 8 9 |
# File 'lib/kraaken/cli/server.rb', line 6 def provision(name) groups = [[:group] || "admin", "admin"].uniq config.cloud.provision(name, groups:) end |