Sha256: 91b19dec375cb7aba1820187a726e0fbc102c3376ebf42f29733466bb7932608

Contents?: true

Size: 739 Bytes

Versions: 102

Compression:

Stored size: 739 Bytes

Contents

# frozen_string_literal: true

require 'avm/tools/core_ext'
require 'avm/launcher/git/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::Launcher::Git::Base.by_root(repository_path)
        end

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

Version data entries

102 entries across 102 versions & 2 rubygems

Version Path
avm-tools-0.140.0 lib/avm/tools/runner/git.rb
eac_tools-0.36.0 sub/avm-tools/lib/avm/tools/runner/git.rb
avm-tools-0.139.0 lib/avm/tools/runner/git.rb
eac_tools-0.35.0 sub/avm-tools/lib/avm/tools/runner/git.rb
avm-tools-0.138.0 lib/avm/tools/runner/git.rb
eac_tools-0.34.0 sub/avm-tools/lib/avm/tools/runner/git.rb
avm-tools-0.137.0 lib/avm/tools/runner/git.rb
eac_tools-0.33.0 sub/avm-tools/lib/avm/tools/runner/git.rb
eac_tools-0.32.0 sub/avm-tools/lib/avm/tools/runner/git.rb
avm-tools-0.136.2 lib/avm/tools/runner/git.rb
eac_tools-0.31.1 sub/avm-tools/lib/avm/tools/runner/git.rb
eac_tools-0.31.0 sub/avm-tools/lib/avm/tools/runner/git.rb
avm-tools-0.136.1 lib/avm/tools/runner/git.rb
eac_tools-0.30.0 sub/avm-tools/lib/avm/tools/runner/git.rb
eac_tools-0.29.0 sub/avm-tools/lib/avm/tools/runner/git.rb
avm-tools-0.136.0 lib/avm/tools/runner/git.rb
eac_tools-0.28.0 sub/avm-tools/lib/avm/tools/runner/git.rb
eac_tools-0.27.2 sub/avm-tools/lib/avm/tools/runner/git.rb
eac_tools-0.27.1 sub/avm-tools/lib/avm/tools/runner/git.rb
avm-tools-0.135.0 lib/avm/tools/runner/git.rb