Sha256: 001eddd462e6018825b5f218d888781ac228540d517657a81ab67e2904d60cb7

Contents?: true

Size: 1.04 KB

Versions: 223

Compression:

Stored size: 1.04 KB

Contents

# frozen_string_literal: true

require 'avm/launcher/instances/runner_helper'

module Avm
  module Tools
    class Runner
      class Launcher
        class Instances
          runner_with :help, ::Avm::Launcher::Instances::RunnerHelper do
            desc 'Mostra informações sobre instâncias.'
            bool_opt '-e', '--extra', 'Show instances\' extra data.'
            pos_arg :instance_path, repeat: true, optional: true
          end

          def run
            instances.each { |i| show_instance(i) }
          end

          private

          def show_instance(instance)
            puts instance_label(instance)
            show_instance_extra(instance) if parsed.extra?
          end

          def show_instance_extra(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
        end
      end
    end
  end
end

Version data entries

223 entries across 223 versions & 2 rubygems

Version Path
eac_tools-0.64.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.63.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.62.1 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.62.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.61.1 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.61.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.60.3 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.60.2 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.60.1 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.60.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.59.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.58.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.57.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.56.1 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.56.0 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.55.7 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.55.6 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.55.5 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.55.4 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb
eac_tools-0.55.3 sub/avm-tools/lib/avm/tools/runner/launcher/instances.rb