Class: EacLauncher::Runner::Publish

Inherits:
Instances::RunnerHelper show all
Defined in:
lib/eac_launcher/runner/publish.rb

Constant Summary collapse

DOC =
<<~DOCOPT
  Publica projetos ou instâncias.

  Usage:
    __PROGRAM__ [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.
    -d --dry-run          "Dry run" publishing.
    --pending             Publish only pending.
    --recache             Rewrite instances cache.
    --run                 Confirm publishing.

DOCOPT

Instance Method Summary collapse

Methods inherited from Instances::RunnerHelper

#context, #find_instances, #instance_label, #instance_match?, #instance_stereotypes, #instances

Instance Method Details

#runObject



25
26
27
28
29
30
31
32
33
# File 'lib/eac_launcher/runner/publish.rb', line 25

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