Sha256: 442e43548de74050d5f4929fdb68871dbb93a6701244e31db98f58e1907ee002
Contents?: true
Size: 1.16 KB
Versions: 1
Compression:
Stored size: 1.16 KB
Contents
#!/usr/bin/env ruby require 'rubygems' require 'bundler/setup' require 'eac_launcher' class Runner < ::EacLauncher::Instances::RunnerHelper DOC = <<DOCOPT.freeze Publica projetos ou instâncias. Usage: __PROGRAM__ (check|dry-run|run) [options] [<instance_path>...] __PROGRAM__ -h | --help Options: -h --help Show this screen. --new Publish projects not published before. -s --stereotype=<st> Publish only for stereotype <stereotype>. --all Publish all instances. --recache Rewrite instances cache. DOCOPT OPTIONS = { new: '--new', confirm: 'run', stereotype: '--stereotype' }.freeze private def run ::EacLauncher::Context.current.recache = options['--recache'] build_publish_options instances.each do |i| next unless i.options.publishable? i.send(instance_method) end end def instance_method options['run'] || options['dry-run'] ? 'publish_run' : 'publish_check' end def build_publish_options ::EacLauncher::Context.current.publish_options = publish_options end def publish_options Hash[OPTIONS.map { |k, v| [k, options[v]] }] end end Runner.new
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eac_launcher-0.4.0 | exe/eac_launcher_publish |