Class: Fig::Command::Action::ListDependencies

Inherits:
Object
  • Object
show all
Includes:
Fig::Command::Action, Role::HasSubAction
Defined in:
lib/fig/command/action/list_dependencies.rb,
lib/fig/command/action/list_dependencies/json.rb,
lib/fig/command/action/list_dependencies/tree.rb,
lib/fig/command/action/list_dependencies/yaml.rb,
lib/fig/command/action/list_dependencies/default.rb,
lib/fig/command/action/list_dependencies/graphviz.rb,
lib/fig/command/action/list_dependencies/all_configs.rb,
lib/fig/command/action/list_dependencies/json_all_configs.rb,
lib/fig/command/action/list_dependencies/tree_all_configs.rb,
lib/fig/command/action/list_dependencies/yaml_all_configs.rb,
lib/fig/command/action/list_dependencies/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_variables?, #load_base_package?, #modifies_repository?, #prepare_repository, #primary_option, #publish?, #register_base_package?, #remote_operation_necessary?, #reset_environment?, #retrieves_should_happen?

Instance Method Details

#list_dependencies?Boolean

Is this –list-dependencies?

Returns:

  • (Boolean)


23
24
25
# File 'lib/fig/command/action/list_dependencies.rb', line 23

def list_dependencies?()
  return true
end

#optionsObject



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

def options()
  if sub_action
    return sub_action.options
  end

  return %w<--list-dependencies>
end