Class: ECSUtil::Command
- Inherits:
-
Object
- Object
- ECSUtil::Command
- Defined in:
- lib/ecsutil/command.rb
Direct Known Subclasses
ECSUtil::Commands::DeployCommand, ECSUtil::Commands::DestroyCommand, ECSUtil::Commands::HelpCommand, ECSUtil::Commands::InitCommand, ECSUtil::Commands::RunCommand, ECSUtil::Commands::ScaleCommand, ECSUtil::Commands::SecretsCommand, ECSUtil::Commands::StatusCommand
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize(config, action = nil, args = []) ⇒ Command
constructor
A new instance of Command.
Methods included from Shared
#deregister_scheduled_tasks, #deregister_secrets, #deregister_services, #deregister_tasks, #load_active_task_definitions, #load_secrets, #load_services
Methods included from Vault
#vault_edit, #vault_read, #vault_write
Methods included from AWS
#aws_call, #create_service, #degerister_task_definition, #delete_rule, #delete_service, #describe_service, #describe_services, #fetch_parameter_store_keys, #generate_event_rule, #generate_event_target, #generate_service, #generate_task_definition, #list_active_task_definitions, #list_rules, #list_services, #put_rule, #put_targets, #register_task_definition, #update_service
Methods included from Helpers
#array_hash, #confirm, #json_file, #parse_env_data, #step_info, #terminate
Constructor Details
#initialize(config, action = nil, args = []) ⇒ Command
Returns a new instance of Command.
18 19 20 21 22 |
# File 'lib/ecsutil/command.rb', line 18 def initialize(config, action = nil, args = []) @config = config @action = action @args = args end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
16 17 18 |
# File 'lib/ecsutil/command.rb', line 16 def action @action end |
#args ⇒ Object (readonly)
Returns the value of attribute args.
16 17 18 |
# File 'lib/ecsutil/command.rb', line 16 def args @args end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
16 17 18 |
# File 'lib/ecsutil/command.rb', line 16 def config @config end |