Sha256: 91bf61f65488fb1fae505238f966d57beff9207297e37431ecedcffb63dfe472

Contents?: true

Size: 852 Bytes

Versions: 10

Compression:

Stored size: 852 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/console/docopt_runner'
require 'eac_ruby_utils/require_sub'
require 'avm/patches/eac_launcher_git_base'
::EacRubyUtils.require_sub(__FILE__)

module Avm
  module Tools
    class Runner < ::EacRubyUtils::Console::DocoptRunner
      class Git < ::EacRubyUtils::Console::DocoptRunner
        DOC = <<~DOCOPT
          Git utilities for AVM.

          Usage:
            __PROGRAM__ [options] __SUBCOMMANDS__
            __PROGRAM__ -h | --help

          Options:
            -h --help             Show this screen.
            -C <path>                 Path to Git repository [default: .].
        DOCOPT

        def repository_path
          options.fetch('-C')
        end

        def git
          @git ||= ::EacLauncher::Git::Base.new(repository_path)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
avm-tools-0.25.0 lib/avm/tools/runner/git.rb
avm-tools-0.24.0 lib/avm/tools/runner/git.rb
avm-tools-0.23.0 lib/avm/tools/runner/git.rb
avm-tools-0.22.0 lib/avm/tools/runner/git.rb
avm-tools-0.21.0 lib/avm/tools/runner/git.rb
avm-tools-0.20.0 lib/avm/tools/runner/git.rb
avm-tools-0.19.0 lib/avm/tools/runner/git.rb
avm-tools-0.18.0 lib/avm/tools/runner/git.rb
avm-tools-0.17.0 lib/avm/tools/runner/git.rb
avm-tools-0.16.0 lib/avm/tools/runner/git.rb