Class: Fig::Command::Action::VersionPlain

Inherits:
Object
  • Object
show all
Includes:
Fig::Command::Action, Role::HasNoSubAction
Defined in:
lib/fig/command/action/version_plain.rb

Constant Summary

Constants included from Fig::Command::Action

EXIT_FAILURE, EXIT_SUCCESS

Instance Attribute Summary

Attributes included from Fig::Command::Action

#execution_context

Instance Method Summary collapse

Methods included from Role::HasNoSubAction

#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?, #descriptor_requirement, #list_dependencies?, #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

#configure(options) ⇒ Object



24
25
26
# File 'lib/fig/command/action/version_plain.rb', line 24

def configure(options)
  @version_plain = options.version_plain
end

#executeObject



28
29
30
31
32
# File 'lib/fig/command/action/version_plain.rb', line 28

def execute()
  print @version_plain || Fig::VERSION

  return EXIT_SUCCESS
end

#execute_immediately_after_command_line_parse?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/fig/command/action/version_plain.rb', line 20

def execute_immediately_after_command_line_parse?
  return true
end

#optionsObject



16
17
18
# File 'lib/fig/command/action/version_plain.rb', line 16

def options()
  return %w<--version-plain>
end