Class: Fig::Command::Action::ListVariables::Default
- Inherits:
-
Object
- Object
- Fig::Command::Action::ListVariables::Default
show all
- Includes:
- Fig::Command::Action
- Defined in:
- lib/fig/command/action/list_variables/default.rb
Constant Summary
EXIT_FAILURE, EXIT_SUCCESS
Instance Attribute Summary
#execution_context
Instance Method Summary
collapse
#allow_both_descriptor_and_file?, #base_package_can_come_from_descriptor?, #cares_about_asset_options?, #configure, #execute_immediately_after_command_line_parse?, #list_dependencies?, #list_variables?, #prepare_repository, #primary_option, #publish?, #remote_operation_necessary?, #reset_environment?, #retrieves_should_happen?
Instance Method Details
#apply_base_config? ⇒ Boolean
37
38
39
|
# File 'lib/fig/command/action/list_variables/default.rb', line 37
def apply_base_config?()
return true
end
|
#apply_config? ⇒ Boolean
33
34
35
|
# File 'lib/fig/command/action/list_variables/default.rb', line 33
def apply_config?()
return true
end
|
#descriptor_requirement ⇒ Object
17
18
19
|
# File 'lib/fig/command/action/list_variables/default.rb', line 17
def descriptor_requirement()
return nil
end
|
#execute ⇒ Object
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# File 'lib/fig/command/action/list_variables/default.rb', line 41
def execute()
variables = @execution_context.environment.variables()
if variables.empty? and $stdout.tty?
puts '<no variables>'
else
variables.keys.sort.each do |variable|
puts variable + "=" + variables[variable]
end
end
return EXIT_SUCCESS
end
|
#load_base_package? ⇒ Boolean
25
26
27
|
# File 'lib/fig/command/action/list_variables/default.rb', line 25
def load_base_package?()
return true
end
|
#modifies_repository? ⇒ Boolean
21
22
23
|
# File 'lib/fig/command/action/list_variables/default.rb', line 21
def modifies_repository?()
return false
end
|
#options ⇒ Object
13
14
15
|
# File 'lib/fig/command/action/list_variables/default.rb', line 13
def options()
return %w<--list-variables>
end
|
#register_base_package? ⇒ Boolean
29
30
31
|
# File 'lib/fig/command/action/list_variables/default.rb', line 29
def register_base_package?()
return true
end
|