Class: Fig::Command::Action::Version
Constant Summary
EXIT_FAILURE, EXIT_SUCCESS
Instance Attribute Summary
#execution_context
Instance Method Summary
collapse
#sub_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
24
25
26
|
# File 'lib/fig/command/action/version.rb', line 24
def configure(options)
@version_message = options.version_message
end
|
#execute ⇒ Object
28
29
30
31
32
|
# File 'lib/fig/command/action/version.rb', line 28
def execute()
puts @version_message || 'fig v' + Fig::VERSION
return EXIT_SUCCESS
end
|
20
21
22
|
# File 'lib/fig/command/action/version.rb', line 20
def execute_immediately_after_command_line_parse?
return true
end
|
#options ⇒ Object
16
17
18
|
# File 'lib/fig/command/action/version.rb', line 16
def options()
return %w<--version>
end
|