class Fig::Command::Action::ListVariables::AllConfigs
Public Instance Methods
apply_config?()
click to toggle source
# File lib/fig/command/action/list_variables/all_configs.rb, line 37 def apply_config?() return nil # don't care end
descriptor_requirement()
click to toggle source
# File lib/fig/command/action/list_variables/all_configs.rb, line 25 def descriptor_requirement() return nil end
execute()
click to toggle source
# File lib/fig/command/action/list_variables/all_configs.rb, line 41 def execute() variable_names = Set.new() walk_dependency_tree( @execution_context.base_package, base_display_config_names() ) do |package, config_name, depth| package[config_name].walk_statements() do |statement| if statement.is_environment_variable? variable_names << statement.name() end end end variable_names.sort.each { |name| puts name } return EXIT_SUCCESS end
load_base_package?()
click to toggle source
# File lib/fig/command/action/list_variables/all_configs.rb, line 29 def load_base_package?() return true end
options()
click to toggle source
# File lib/fig/command/action/list_variables/all_configs.rb, line 21 def options() return %w<--list-variables --list-all-configs> end
register_base_package?()
click to toggle source
# File lib/fig/command/action/list_variables/all_configs.rb, line 33 def register_base_package?() return nil # don't care end