class Fig::Command::Action::Get

Public Instance Methods

apply_base_config?() click to toggle source
# File lib/fig/command/action/get.rb, line 38
def apply_base_config?()
  return true
end
apply_config?() click to toggle source
# File lib/fig/command/action/get.rb, line 34
def apply_config?()
  return true
end
configure(options) click to toggle source
# File lib/fig/command/action/get.rb, line 42
def configure(options)
  @variable = options.variable_to_get
end
descriptor_requirement() click to toggle source
# File lib/fig/command/action/get.rb, line 18
def descriptor_requirement()
  return nil
end
execute() click to toggle source
# File lib/fig/command/action/get.rb, line 46
def execute()
  # Ruby v1.8 emits "nil" for nil, whereas ruby v1.9 emits the empty
  # string, so, for consistency, we need to ensure that we always emit the
  # empty string.
  puts @execution_context.environment[@variable] || ''

  return EXIT_SUCCESS
end
load_base_package?() click to toggle source
# File lib/fig/command/action/get.rb, line 26
def load_base_package?()
  return true
end
modifies_repository?() click to toggle source
# File lib/fig/command/action/get.rb, line 22
def modifies_repository?()
  return false
end
options() click to toggle source
# File lib/fig/command/action/get.rb, line 14
def options()
  return %w<--get>
end
register_base_package?() click to toggle source
# File lib/fig/command/action/get.rb, line 30
def register_base_package?()
  return true
end