class Fig::Command::Action::DumpPackageDefinitionParsed
Public Instance Methods
apply_config?()
click to toggle source
# File lib/fig/command/action/dump_package_definition_parsed.rb, line 35 def apply_config?() return nil # don't care end
descriptor_requirement()
click to toggle source
# File lib/fig/command/action/dump_package_definition_parsed.rb, line 19 def descriptor_requirement() return nil end
execute()
click to toggle source
# File lib/fig/command/action/dump_package_definition_parsed.rb, line 39 def execute() if @execution_context.synthetic_package_for_command_line # Purposely syntactically incorrect so that nothing attempts to round # trip this. puts "---- synthetic package for command-line ----\n" dump_package @execution_context.synthetic_package_for_command_line puts "\n---- base package ----\n" end dump_package @execution_context.base_package return EXIT_SUCCESS end
load_base_package?()
click to toggle source
# File lib/fig/command/action/dump_package_definition_parsed.rb, line 27 def load_base_package?() return true end
modifies_repository?()
click to toggle source
# File lib/fig/command/action/dump_package_definition_parsed.rb, line 23 def modifies_repository?() return false end
options()
click to toggle source
# File lib/fig/command/action/dump_package_definition_parsed.rb, line 15 def options() return %w<--dump-package-definition-parsed> end
register_base_package?()
click to toggle source
# File lib/fig/command/action/dump_package_definition_parsed.rb, line 31 def register_base_package?() return nil # don't care end
Private Instance Methods
dump_package(package)
click to toggle source
# File lib/fig/command/action/dump_package_definition_parsed.rb, line 56 def dump_package(package) text_assembler = Fig::PackageDefinitionTextAssembler.new :emit_as_input text_assembler.add_output package.statements unparsed, * = text_assembler.assemble_package_definition print unparsed return end