Sha256: b44d250859a93adde720b82456f0206545f4346d60baa891219a96220a04713e
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
require 'fig/command/action' require 'fig/command/action/role/has_no_sub_action' require 'fig/package_definition_text_assembler' module Fig; end class Fig::Command; end module Fig::Command::Action; end class Fig::Command::Action::DumpPackageDefinitionForCommandLine include Fig::Command::Action include Fig::Command::Action::Role::HasNoSubAction def options() return %w<--dump-package-definition-for-command-line> 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 false end def apply_config?() return false end def configure(options) @environment_statements = options.environment_statements @package_contents_statements = options.package_contents_statements return end def execute() text_assembler = Fig::PackageDefinitionTextAssembler.new :emit_as_input text_assembler.add_output @package_contents_statements text_assembler.add_output [ Fig::Statement::Configuration.new( nil, nil, Fig::Package::DEFAULT_CONFIG, @environment_statements ) ] unparsed, explanations = text_assembler.assemble_package_definition print unparsed return EXIT_SUCCESS end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fig-0.2.1 | lib/fig/command/action/dump_package_definition_for_command_line.rb |