Sha256: 3e313fd5d7edc9c3952da3b275c72df2078b524913c72d965bbc613a84e68a03

Contents?: true

Size: 821 Bytes

Versions: 8

Compression:

Stored size: 821 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'rubygems'
require 'bundler/setup'
require 'eac_launcher'

class Runner < ::EacLauncher::Instances::RunnerHelper
  DOC = <<DOCOPT.freeze
Mostra informações sobre instâncias.

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

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

DOCOPT

  private

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

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

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

Runner.new

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
eac_launcher-0.3.2 exe/eac_launcher_instance
eac_launcher-0.3.1 exe/eac_launcher_instance
eac_launcher-0.3.0 exe/eac_launcher_instance
eac_launcher-0.2.2 exe/eac_launcher_instance
eac_launcher-0.2.1 exe/eac_launcher_instance
eac_launcher-0.2.0 exe/eac_launcher_instance
eac_launcher-0.1.7 exe/eac_launcher_instance
eac_launcher-0.1.6 exe/eac_launcher_instance