Sha256: 705e55bf3916be83231d6ccb29c95ede79c6798e1355b7998e92377e7277b670

Contents?: true

Size: 921 Bytes

Versions: 29

Compression:

Stored size: 921 Bytes

Contents

require 'fig/command/action'
require 'fig/command/action/role/has_no_sub_action'

module  Fig; end
class   Fig::Command; end
module  Fig::Command::Action; end

class Fig::Command::Action::DumpPackageDefinitionText
  include Fig::Command::Action
  include Fig::Command::Action::Role::HasNoSubAction

  def options()
    return %w<--dump-package-definition-text>
  end

  def descriptor_requirement()
    return nil
  end

  def modifies_repository?()
    return false
  end

  def load_base_package?()
    return true
  end

  def register_base_package?()
    return nil # don't care
  end

  def apply_config?()
    return nil # don't care
  end

  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
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
fig-1.23.0 lib/fig/command/action/dump_package_definition_text.rb
fig-1.22.1.beta.1 lib/fig/command/action/dump_package_definition_text.rb
fig-1.22.0 lib/fig/command/action/dump_package_definition_text.rb
fig-1.21.1.beta.2 lib/fig/command/action/dump_package_definition_text.rb
fig-1.21.1.beta.1 lib/fig/command/action/dump_package_definition_text.rb
fig-1.21.0 lib/fig/command/action/dump_package_definition_text.rb
fig-1.20.1.beta.1 lib/fig/command/action/dump_package_definition_text.rb
fig-1.20.0 lib/fig/command/action/dump_package_definition_text.rb
fig-1.19.0 lib/fig/command/action/dump_package_definition_text.rb
fig-1.18.0 lib/fig/command/action/dump_package_definition_text.rb
fig-1.17.0 lib/fig/command/action/dump_package_definition_text.rb
fig-1.16.1.beta.1 lib/fig/command/action/dump_package_definition_text.rb
fig-1.16.0 lib/fig/command/action/dump_package_definition_text.rb
fig-1.15.1.beta.2 lib/fig/command/action/dump_package_definition_text.rb
fig-1.15.1.beta.1 lib/fig/command/action/dump_package_definition_text.rb
fig-1.15.0 lib/fig/command/action/dump_package_definition_text.rb
fig-1.14.0 lib/fig/command/action/dump_package_definition_text.rb
fig-1.13.0 lib/fig/command/action/dump_package_definition_text.rb
fig-1.12.0 lib/fig/command/action/dump_package_definition_text.rb
fig-1.11.0 lib/fig/command/action/dump_package_definition_text.rb