Class: Fig::Command::Action::Clean
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?, #execute_immediately_after_command_line_parse?, #list_dependencies?, #list_variables?, #prepare_repository, #primary_option, #publish?, #register_base_package?, #remote_operation_necessary?, #reset_environment?, #retrieves_should_happen?
Instance Method Details
30
31
32
|
# File 'lib/fig/command/action/clean.rb', line 30
def configure(options)
@descriptor = options.descriptor
end
|
#descriptor_requirement ⇒ Object
18
19
20
|
# File 'lib/fig/command/action/clean.rb', line 18
def descriptor_requirement()
return :required
end
|
#execute ⇒ Object
34
35
36
37
38
|
# File 'lib/fig/command/action/clean.rb', line 34
def execute()
@execution_context.repository.clean(@descriptor)
return EXIT_SUCCESS
end
|
#load_base_package? ⇒ Boolean
26
27
28
|
# File 'lib/fig/command/action/clean.rb', line 26
def load_base_package?()
return false
end
|
#modifies_repository? ⇒ Boolean
22
23
24
|
# File 'lib/fig/command/action/clean.rb', line 22
def modifies_repository?()
return true
end
|
#options ⇒ Object
14
15
16
|
# File 'lib/fig/command/action/clean.rb', line 14
def options()
return %w<--clean>
end
|