Sha256: fdc5ed9b11c3e5884e6bc2cdf3e138efe988e69f0e91773e7ee1768358df7098

Contents?: true

Size: 739 Bytes

Versions: 119

Compression:

Stored size: 739 Bytes

Contents

# frozen_string_literal: true

require 'avm/tools/core_ext'
require 'avm/git/launcher/base'

module Avm
  module Tools
    class Runner
      class Git
        require_sub __FILE__
        runner_with :help, :subcommands do
          desc 'Git utilities for AVM.'
          arg_opt '-C', '--path', 'Path to Git repository.'
          subcommands
        end

        def repository_path
          repository_path? ? parsed.path : '.'
        end

        def repository_path?
          parsed.path.present?
        end

        def git
          @git ||= ::Avm::Git::Launcher::Base.by_root(repository_path)
        end

        # @return [[EacGit::Local]]
        def git_repo
          git.eac_git
        end
      end
    end
  end
end

Version data entries

119 entries across 119 versions & 2 rubygems

Version Path
avm-tools-0.160.2 lib/avm/tools/runner/git.rb
eac_tools-0.86.4 sub/avm-tools/lib/avm/tools/runner/git.rb
eac_tools-0.86.3 sub/avm-tools/lib/avm/tools/runner/git.rb
avm-tools-0.160.1 lib/avm/tools/runner/git.rb
eac_tools-0.86.2 sub/avm-tools/lib/avm/tools/runner/git.rb
eac_tools-0.86.1 sub/avm-tools/lib/avm/tools/runner/git.rb
avm-tools-0.160.0 lib/avm/tools/runner/git.rb
eac_tools-0.86.0 sub/avm-tools/lib/avm/tools/runner/git.rb
eac_tools-0.85.1 sub/avm-tools/lib/avm/tools/runner/git.rb
avm-tools-0.159.1 lib/avm/tools/runner/git.rb
eac_tools-0.85.0 sub/avm-tools/lib/avm/tools/runner/git.rb
eac_tools-0.84.2 sub/avm-tools/lib/avm/tools/runner/git.rb
eac_tools-0.84.1 sub/avm-tools/lib/avm/tools/runner/git.rb
eac_tools-0.84.0 sub/avm-tools/lib/avm/tools/runner/git.rb
eac_tools-0.83.0 sub/avm-tools/lib/avm/tools/runner/git.rb
avm-tools-0.159.0 lib/avm/tools/runner/git.rb
eac_tools-0.82.0 sub/avm-tools/lib/avm/tools/runner/git.rb
avm-tools-0.158.0 lib/avm/tools/runner/git.rb
eac_tools-0.81.0 sub/avm-tools/lib/avm/tools/runner/git.rb
eac_tools-0.80.0 sub/avm-tools/lib/avm/tools/runner/git.rb