Class: Avm::Tools::Runner::Launcher::Publish

Inherits:
EacLauncher::Instances::RunnerHelper show all
Defined in:
lib/avm/tools/runner/launcher/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 EacLauncher::Instances::RunnerHelper

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

Instance Method Details

#runObject



29
30
31
32
33
34
35
36
37
# File 'lib/avm/tools/runner/launcher/publish.rb', line 29

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