Sha256: 611a231f37b84fa934c50f016a651281f1ce1f736c3e81d0d206db1296f00c22
Contents?: true
Size: 733 Bytes
Versions: 7
Compression:
Stored size: 733 Bytes
Contents
# frozen_string_literal: true require 'avm/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
7 entries across 7 versions & 1 rubygems