class Fig::Command::Action::DumpPackageDefinitionText

Public Instance Methods

apply_config?() click to toggle source
# File lib/fig/command/action/dump_package_definition_text.rb, line 34
def apply_config?()
  return nil # don't care
end
descriptor_requirement() click to toggle source
# File lib/fig/command/action/dump_package_definition_text.rb, line 18
def descriptor_requirement()
  return nil
end
execute() click to toggle source
# File lib/fig/command/action/dump_package_definition_text.rb, line 38
def execute()
  text = @execution_context.base_package.unparsed_text
  if text
    puts text.strip # Ensure one and only one ending newline.

    return EXIT_SUCCESS
  end

  $stderr.puts %q<There's no text for the package.>

  return EXIT_FAILURE
end
load_base_package?() click to toggle source
# File lib/fig/command/action/dump_package_definition_text.rb, line 26
def load_base_package?()
  return true
end
modifies_repository?() click to toggle source
# File lib/fig/command/action/dump_package_definition_text.rb, line 22
def modifies_repository?()
  return false
end
options() click to toggle source
# File lib/fig/command/action/dump_package_definition_text.rb, line 14
def options()
  return %w<--dump-package-definition-text>
end
register_base_package?() click to toggle source
# File lib/fig/command/action/dump_package_definition_text.rb, line 30
def register_base_package?()
  return nil # don't care
end