Sha256: d69ccd0aa0f9da7cac238210cf56c0626fd0ce5ef159beb34f9a09a0883a78d6
Contents?: true
Size: 846 Bytes
Versions: 1
Compression:
Stored size: 846 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 load_base_package?() return true end def register_base_package?() return false end def apply_config?() return false 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fig-0.1.71 | lib/fig/command/action/dump_package_definition_text.rb |