Class: Fig::Command::Action::ListRemote
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_package_content_options?, #configure, #execute_immediately_after_command_line_parse?, #prepare_repository, #primary_option, #register_base_package?, #reset_environment?, #retrieves_should_happen?
Instance Method Details
#descriptor_requirement ⇒ Object
16
17
18
|
# File 'lib/fig/command/action/list_remote.rb', line 16
def descriptor_requirement()
return :warn
end
|
#execute ⇒ Object
32
33
34
35
36
|
# File 'lib/fig/command/action/list_remote.rb', line 32
def execute()
@execution_context.repository.list_remote_packages.sort.each {|item| puts item}
return EXIT_SUCCESS
end
|
#load_base_package? ⇒ Boolean
24
25
26
|
# File 'lib/fig/command/action/list_remote.rb', line 24
def load_base_package?()
return nil end
|
#modifies_repository? ⇒ Boolean
20
21
22
|
# File 'lib/fig/command/action/list_remote.rb', line 20
def modifies_repository?()
return false
end
|
#options ⇒ Object
12
13
14
|
# File 'lib/fig/command/action/list_remote.rb', line 12
def options()
return %w<--list-remote>
end
|
#remote_operation_necessary? ⇒ Boolean
28
29
30
|
# File 'lib/fig/command/action/list_remote.rb', line 28
def remote_operation_necessary?()
return true
end
|