Class: Commands::CreateInstanceGroupCommand
- Inherits:
-
AbstractInstanceGroupCommand
- Object
- Command
- AbstractInstanceGroupCommand
- Commands::CreateInstanceGroupCommand
- Defined in:
- lib/commands.rb
Instance Attribute Summary
Attributes inherited from AbstractInstanceGroupCommand
#bid_price, #instance_count, #instance_group_id, #instance_group_name, #instance_role, #instance_type
Attributes inherited from Command
#arg, #commands, #description, #logger, #name
Instance Method Summary collapse
Methods inherited from AbstractInstanceGroupCommand
#default_instance_group_name, #initialize, #instance_group, #require_singleton_array
Methods inherited from Command
#enact, #get_field, #has_value, #have, #initialize, #option, #require, #require_single_jobflow, #resolve
Constructor Details
This class inherits a constructor from Commands::AbstractInstanceGroupCommand
Instance Method Details
#validate ⇒ Object
1149 1150 1151 1152 1153 1154 1155 |
# File 'lib/commands.rb', line 1149 def validate if ! ["MASTER", "CORE", "TASK"].include?(get_field(:instance_role)) then raise RuntimeError, "Invalid argument to #{name}, expected master, core or task" end require(:instance_type, "Option #{name} is missing --instance-type") require(:instance_count, "Option #{name} is missing --instance-count") end |