Sha256: c781db39c34dc75248c5cb610d6b9890435e05a8fc4d2f742561af2dd7b965f7
Contents?: true
Size: 690 Bytes
Versions: 1
Compression:
Stored size: 690 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/require_sub' require 'eac_launcher/git/base' ::EacRubyUtils.require_sub(__FILE__) 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 ||= ::EacLauncher::Git::Base.by_root(repository_path) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
avm-tools-0.98.0 | lib/avm/tools/runner/git.rb |