Class: Fig::Command::Action::ListVariables

Inherits:
Object
  • Object
show all
Includes:
Fig::Command::Action, Role::HasSubAction
Defined in:
lib/fig/command/action/list_variables.rb,
lib/fig/command/action/list_variables/json.rb,
lib/fig/command/action/list_variables/tree.rb,
lib/fig/command/action/list_variables/yaml.rb,
lib/fig/command/action/list_variables/default.rb,
lib/fig/command/action/list_variables/graphviz.rb,
lib/fig/command/action/list_variables/all_configs.rb,
lib/fig/command/action/list_variables/json_all_configs.rb,
lib/fig/command/action/list_variables/tree_all_configs.rb,
lib/fig/command/action/list_variables/yaml_all_configs.rb,
lib/fig/command/action/list_variables/graphviz_all_configs.rb

Defined Under Namespace

Classes: AllConfigs, Default, Graphviz, GraphvizAllConfigs, JSON, JSONAllConfigs, Tree, TreeAllConfigs, YAML, YAMLAllConfigs

Constant Summary

Constants included from Fig::Command::Action

EXIT_FAILURE, EXIT_SUCCESS

Instance Attribute Summary

Attributes included from Role::HasSubAction

#sub_action

Attributes included from Fig::Command::Action

#execution_context

Instance Method Summary collapse

Methods included from Role::HasSubAction

#apply_base_config?, #apply_config?, #check_sub_action_presence, #configure, #descriptor_requirement, #execute, #execution_context=, #load_base_package?, #modifies_repository?, #register_base_package?, #sub_action?

Methods included from Fig::Command::Action

#allow_both_descriptor_and_file?, #apply_base_config?, #apply_config?, #base_package_can_come_from_descriptor?, #cares_about_asset_options?, #configure, #descriptor_requirement, #execute, #execute_immediately_after_command_line_parse?, #list_dependencies?, #load_base_package?, #modifies_repository?, #prepare_repository, #primary_option, #publish?, #register_base_package?, #remote_operation_necessary?, #retrieves_should_happen?

Instance Method Details

#list_variables?Boolean

Is this –list-variables?

Returns:

  • (Boolean)


27
28
29
# File 'lib/fig/command/action/list_variables.rb', line 27

def list_variables?()
  return true
end

#optionsObject



14
15
16
17
18
19
20
# File 'lib/fig/command/action/list_variables.rb', line 14

def options()
  if sub_action
    return sub_action.options
  end

  return %w<--list-variables>
end

#reset_environment?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/fig/command/action/list_variables.rb', line 22

def reset_environment?()
  return true
end