lib/cloudstack-cli/helper.rb in cloudstack-cli-0.0.3 vs lib/cloudstack-cli/helper.rb in cloudstack-cli-0.0.4

- old
+ new

@@ -35,11 +35,11 @@ def update_offering(args) @cs.update_offering(args) end - def templates(type = 'featured', project_id) + def templates(type = 'featured', project_id = -1) @templates ||= @cs.list_templates(type, project_id) end def projects @projects ||= @cs.list_projects @@ -192,16 +192,16 @@ options.to_enum.with_index(1).each do |option, i| puts "#{i}: #{option[attr]}" end end - def interactive + def bootstrap_server_interactive ARGV.clear puts - puts %{We are going to deploy a new server and... - - assign a public IP address - - create a firewall rule for SSH and HTTP access - - connect to the server and install the puppet client}.color(:magenta) + puts "We are going to deploy a new server and..." + puts "- assign a public IP address" + puts "- create a firewall rule for SSH and HTTP access" + puts "- connect to the server and install the puppet client}" puts print "Please provide a name for the new server".background(:blue) puts " (spaces or special characters are NOT allowed): " server_name = gets.chomp \ No newline at end of file