lib/shelly/cli/main.rb in shelly-0.2.7 vs lib/shelly/cli/main.rb in shelly-0.2.8

- old
+ new

@@ -83,10 +83,12 @@ :desc => "Redeem code for free credits" method_option "organization", :type => :string, :aliases => "-o", :desc => "Add cloud to existing organization" method_option "skip-requirements-check", :type => :boolean, :desc => "Skip Shelly Cloud requirements check" + method_option "zone", :type => :boolean, :hide => true, + :desc => "Create cloud in given zone" desc "add", "Add a new cloud" def add check_options(options) unless options["skip-requirements-check"] return unless check(verbose = false) @@ -95,9 +97,10 @@ app.code_name = options["code-name"] || ask_for_code_name app.databases = options["databases"] || ask_for_databases app.size = options["size"] || "large" app.redeem_code = options["redeem-code"] app.organization = options["organization"] || ask_for_organization(app.code_name) + app.zone_name = options["zone"] app.create if overwrite_remote?(app) say "Adding remote #{app} #{app.git_url}", :green app.add_git_remote