Class: Kraaken::Cli::Server

Inherits:
Base
  • Object
show all
Defined in:
lib/kraaken/cli/server.rb

Instance Method Summary collapse

Methods inherited from Base

exit_on_failure?

Instance Method Details

#listObject



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 = [options[:group] || "admin", "admin"].uniq
  config.cloud.provision(name, groups:)
end