Class: Fig::Command::Action::RunCommandLine
Constant Summary
EXIT_FAILURE, EXIT_SUCCESS
Instance Attribute Summary
#execution_context
Instance Method Summary
collapse
#sub_action?
#allow_both_descriptor_and_file?, #base_package_can_come_from_descriptor?, #cares_about_package_content_options?, #execute_immediately_after_command_line_parse?, #prepare_repository, #primary_option, #remote_operation_necessary?, #reset_environment?, #retrieves_should_happen?
Instance Method Details
#apply_base_config? ⇒ Boolean
36
37
38
|
# File 'lib/fig/command/action/run_command_line.rb', line 36
def apply_base_config?()
return true
end
|
#apply_config? ⇒ Boolean
32
33
34
|
# File 'lib/fig/command/action/run_command_line.rb', line 32
def apply_config?()
return true
end
|
40
41
42
43
44
|
# File 'lib/fig/command/action/run_command_line.rb', line 40
def configure(options)
@command_line = options.shell_command
return
end
|
#descriptor_requirement ⇒ Object
16
17
18
|
# File 'lib/fig/command/action/run_command_line.rb', line 16
def descriptor_requirement()
return nil
end
|
#execute ⇒ Object
46
47
48
49
50
51
52
|
# File 'lib/fig/command/action/run_command_line.rb', line 46
def execute()
@execution_context.environment.execute_shell(@command_line) do
|command| @execution_context.operating_system.shell_exec command
end
return EXIT_SUCCESS
end
|
#load_base_package? ⇒ Boolean
24
25
26
|
# File 'lib/fig/command/action/run_command_line.rb', line 24
def load_base_package?()
return true
end
|
#modifies_repository? ⇒ Boolean
20
21
22
|
# File 'lib/fig/command/action/run_command_line.rb', line 20
def modifies_repository?()
return false
end
|
#options ⇒ Object
12
13
14
|
# File 'lib/fig/command/action/run_command_line.rb', line 12
def options()
return %w<-->
end
|
#register_base_package? ⇒ Boolean
28
29
30
|
# File 'lib/fig/command/action/run_command_line.rb', line 28
def register_base_package?()
return true
end
|