Class: Commands::HiveCommand
- Inherits:
-
StepCommand
- Object
- Command
- StepCommand
- Commands::HiveCommand
- Defined in:
- lib/commands.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#hive_versions ⇒ Object
Returns the value of attribute hive_versions.
Attributes inherited from StepCommand
#apps_path, #args, #beta_path, #enable_debugging_path, #hive_cmd, #hive_path, #pig_cmd, #pig_path, #script_runner_path, #step_action, #step_name
Attributes inherited from Command
#arg, #commands, #description, #logger, #name
Instance Method Summary collapse
Methods inherited from StepCommand
#default_enable_debugging_path, #default_hive_cmd, #default_hive_path, #default_pig_cmd, #default_pig_path, #default_resize_jobflow_cmd, #default_script_runner_path, #ensure_install_cmd, #extra_args, #initialize, #reorder_steps, #script_args, #validate
Methods inherited from Command
#enact, #get_field, #has_value, #have, #initialize, #option, #require, #require_single_jobflow, #resolve, #validate
Constructor Details
This class inherits a constructor from Commands::StepCommand
Instance Attribute Details
#hive_versions ⇒ Object
Returns the value of attribute hive_versions.
400 401 402 |
# File 'lib/commands.rb', line 400 def hive_versions @hive_versions end |
Instance Method Details
#get_version_args(require_single_version) ⇒ Object
402 403 404 405 406 407 408 409 410 411 412 413 |
# File 'lib/commands.rb', line 402 def get_version_args(require_single_version) versions = get_field(:hive_versions, nil) if versions == nil then return [] end if require_single_version then if versions.split(",").size != 1 then raise RuntimeError, "Only one version my be specified for --hive-script" end end return ["--hive-versions", versions] end |