update client to changes in server
This commit is contained in:
parent
0f2698f587
commit
b22045a278
@ -42,12 +42,11 @@ class Stack < Handler
|
||||
q = {}
|
||||
|
||||
q[:provider] = options[:provider] || resources_selector.select_available_provider
|
||||
q[:id] = options[:id] || enter_parameter(I18n.t('handler.stack.create.id'))
|
||||
# q[:id] = options[:id] || enter_parameter(I18n.t('handler.stack.create.id'))
|
||||
q[:project] = options[:project] || resources_selector.select_available_project
|
||||
q[:deploy_env] = options[:deploy_env] || enter_parameter(I18n.t('handler.stack.create.deploy_env'))
|
||||
q[:stack_template] = options[:stack_template] || resources_selector.select_available_stack_template(provider: q[:provider])
|
||||
q[:run_list] = options[:run_list] || enter_parameter_or_empty(I18n.t('handler.stack.create.run_list'))
|
||||
q[:run_list] = q[:run_list].split(',')
|
||||
# q[:run_list] = options[:run_list] || enter_parameter_or_empty(I18n.t('handler.stack.create.run_list'))
|
||||
# q[:run_list] = q[:run_list].split(',')
|
||||
|
||||
filepath = options[:parameters_file] || enter_parameter(I18n.t('handler.stack.create.parameters_file'))
|
||||
q[:parameters] = JSON.parse(File.read(filepath))
|
||||
|
||||
@ -16,7 +16,7 @@ module Output
|
||||
headers, rows = create_list
|
||||
else
|
||||
puts 'Details are not displayed in table view'
|
||||
title = I18n.t("output.title.stack.show", id: @data["id"])
|
||||
title = I18n.t("output.title.stack.show", id: @data["name"])
|
||||
headers, rows = create_show
|
||||
end
|
||||
end
|
||||
@ -37,14 +37,14 @@ module Output
|
||||
def create_list
|
||||
abort(I18n.t("output.not_found.stack.list")) if @data.empty?
|
||||
|
||||
fields_to_output = %w(id project deploy_env stack_template stack_status)
|
||||
fields_to_output = %w(name project deploy_env stack_template stack_status)
|
||||
fields_to_output << 'provider' unless provider_given?
|
||||
|
||||
headers_and_rows(@data, fields_to_output)
|
||||
end
|
||||
|
||||
def create_show
|
||||
headers_and_rows([@data], %w(id project deploy_env stack_template stack_status))
|
||||
headers_and_rows([@data], %w(name project deploy_env stack_template stack_status))
|
||||
end
|
||||
|
||||
def create_servers_list
|
||||
|
||||
Loading…
Reference in New Issue
Block a user