Class: Kontena::Cli::Stacks::ServiceGenerator
- Inherits:
-
Object
- Object
- Kontena::Cli::Stacks::ServiceGenerator
- Includes:
- Kontena::Cli::Services::ServicesHelper
- Defined in:
- lib/kontena/cli/stacks/service_generator.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#service_config ⇒ Object
readonly
Returns the value of attribute service_config.
Instance Method Summary collapse
- #generate ⇒ Hash
-
#initialize(service_config) ⇒ ServiceGenerator
constructor
A new instance of ServiceGenerator.
Methods included from Kontena::Cli::Services::ServicesHelper
#create_service, #delete_service, #deploy_service, #get_service, #health_status, #health_status_icon, #int_to_filesize, #parse_build_args, #parse_container_name, #parse_deploy_opts, #parse_image, #parse_log_opts, #parse_memory, #parse_ports, #parse_relative_time, #parse_secrets, #parse_service_id, #render_service_deploy_instances, #restart_service, #scale_service, #show_service, #show_service_containers, #show_service_instances, #start_service, #stop_service, #update_service, #wait_for_deploy_to_finish
Methods included from Common
#access_token=, #add_master, #any_key_to_continue, #any_key_to_continue_with_timeout, #api_url, #api_url=, #caret, #clear_current_grid, #client, #cloud_auth?, #cloud_client, #config, #confirm, #confirm_command, #current_grid, #current_master_index, #debug?, #display_account_login_info, #display_login_info, display_logo, #display_master_login_info, #error, exit_with_error, #kontena_account, #logger, #pastel, #print, #prompt, #puts, #require_api_url, #require_token, #reset_client, #reset_cloud_client, #running_quiet?, #running_silent?, #running_verbose?, #spin_if, #spinner, #sprint, #sputs, #stdin_input, #use_refresh_token, #vfakespinner, #vputs, #vspinner, #warning
Constructor Details
#initialize(service_config) ⇒ ServiceGenerator
Returns a new instance of ServiceGenerator.
11 12 13 |
# File 'lib/kontena/cli/stacks/service_generator.rb', line 11 def initialize(service_config) @service_config = service_config end |
Instance Attribute Details
#service_config ⇒ Object (readonly)
Returns the value of attribute service_config.
9 10 11 |
# File 'lib/kontena/cli/stacks/service_generator.rb', line 9 def service_config @service_config end |
Instance Method Details
#generate ⇒ Hash
17 18 19 |
# File 'lib/kontena/cli/stacks/service_generator.rb', line 17 def generate parse_data(service_config) end |