lib/app42/command/setup.rb in app42-0.6.1 vs lib/app42/command/setup.rb in app42-0.6.2

- old
+ new

@@ -3,11 +3,11 @@ module App42 module Command class Setup < Base - # Collect all required attributes for new App42 clould setup spawn + # Collect all required attributes for new App42 cloud setup spawn # required inputs are setup_name, vm_type, iaas, setup_type and flavour def setup_cloud_api setup_name = get_setup_name_and_check_setup_url_availability vm_type = get_vm_types iaas = get_iaas_providers @@ -18,42 +18,42 @@ end # Delete App42 cloud API setup, return true or error code/message def delete_cloud_api @options[:setup] = get_setup_name if @options[:setup].nil? - response = delete_clouldapi @options[:setup] if is_setup_name_exist? @options[:setup] + response = delete_cloudapi @options[:setup] if is_setup_name_exist? @options[:setup] exit! if response end # collect BPaaS setup name from user and proceed BPaaS start request def start @options[:setup] = get_setup_name if @options[:setup].nil? - response = clouldapi_operation __method__, @options[:setup] if is_setup_name_exist? @options[:setup] + response = cloudapi_operation __method__, @options[:setup] if is_setup_name_exist? @options[:setup] exit! if response end # collect BPaaS setup name from user and proceed BPaaS stop request def stop @options[:setup] = get_setup_name if @options[:setup].nil? - response = clouldapi_operation __method__, @options[:setup] if is_setup_name_exist? @options[:setup] + response = cloudapi_operation __method__, @options[:setup] if is_setup_name_exist? @options[:setup] exit! if response end # collect BPaaS setup name from user and proceed BPaaS upgrade request def upgrade @options[:setup] = get_setup_name if @options[:setup].nil? print_new_line - flavour = get_flavour_upgrade @options[:setup] - response = upgrade_or_downgrade_clouldapi __method__, @options[:setup], flavour if is_setup_name_exist? @options[:setup] + flavour = get_flavour_for_upgrade_or_downgrade @options[:setup], __method__.to_s if is_setup_name_exist? @options[:setup] + response = upgrade_or_downgrade_cloudapi __method__, @options[:setup], flavour exit! if response end # collect BPaaS setup name from user and proceed BPaaS downgrade request def downgrade @options[:setup] = get_setup_name if @options[:setup].nil? print_new_line - flavour = get_flavour_downgrade @options[:setup] - response = upgrade_or_downgrade_clouldapi __method__, @options[:setup], flavour if is_setup_name_exist? @options[:setup] + flavour = get_flavour_for_upgrade_or_downgrade @options[:setup], __method__.to_s if is_setup_name_exist? @options[:setup] + response = upgrade_or_downgrade_cloudapi __method__, @options[:setup], flavour exit! if response end # return setup type def get_setup_type \ No newline at end of file