Sha256: cd761d90dc5873f47a786916a809fd59a1a296a5e6325af184ad5131b46e7a94
Contents?: true
Size: 1.21 KB
Versions: 2
Compression:
Stored size: 1.21 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. --pending Publish only pending. --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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eac_launcher-0.5.1 | exe/eac_launcher_publish |
eac_launcher-0.5.0 | exe/eac_launcher_publish |