Sha256: 7d8319cc34b832456672f48e225cddf0d08387369451d6c722b0e685fb7c9561

Contents?: true

Size: 1.11 KB

Versions: 16

Compression:

Stored size: 1.11 KB

Contents

# frozen_string_literal: true

require 'eac_launcher/instances/runner_helper'

module EacLauncher
  class Runner < ::EacRubyUtils::Console::DocoptRunner
    class Instances < ::EacLauncher::Instances::RunnerHelper
      DOC = <<~DOCOPT
        Mostra informações sobre instâncias.

        Usage:
          __PROGRAM__ [options] [<instance_path>...]
          __PROGRAM__ -h | --help

        Options:
          -h --help             Show this screen.
          --all            Get all instances.
          --recache        Rewrite instances cache.

      DOCOPT

      def run
        ::EacLauncher::Context.current.recache = options['--recache']
        instances.each { |i| show_instance(i) }
      end

      private

      def show_instance(instance)
        puts instance_label(instance)
        infov('  * Parent', (instance.parent ? instance_label(instance.parent) : '-'))
        infov('  * Git current revision', instance.options.git_current_revision)
        infov('  * Git publish remote', instance.options.git_publish_remote)
      end

      def instance_path
        options['<instance_path>']
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
avm-tools-0.58.1 lib/eac_launcher/runner/instances.rb
avm-tools-0.58.0 lib/eac_launcher/runner/instances.rb
avm-tools-0.57.0 lib/eac_launcher/runner/instances.rb
avm-tools-0.56.0 lib/eac_launcher/runner/instances.rb
avm-tools-0.55.0 lib/eac_launcher/runner/instances.rb
avm-tools-0.54.2 lib/eac_launcher/runner/instances.rb
avm-tools-0.54.1 lib/eac_launcher/runner/instances.rb
avm-tools-0.54.0 lib/eac_launcher/runner/instances.rb
avm-tools-0.53.0 lib/eac_launcher/runner/instances.rb
avm-tools-0.52.0 lib/eac_launcher/runner/instances.rb
avm-tools-0.51.0 lib/eac_launcher/runner/instances.rb
avm-tools-0.50.0 lib/eac_launcher/runner/instances.rb
avm-tools-0.49.0 lib/eac_launcher/runner/instances.rb
avm-tools-0.48.0 lib/eac_launcher/runner/instances.rb
avm-tools-0.47.0 lib/eac_launcher/runner/instances.rb
avm-tools-0.46.0 lib/eac_launcher/runner/instances.rb