Class: Avm::Tools::Runner::Git

Inherits:
EacRubyUtils::Console::DocoptRunner
  • Object
show all
Defined in:
lib/avm/tools/runner/git.rb,
lib/avm/tools/runner/git/issue.rb,
lib/avm/tools/runner/git/commit.rb,
lib/avm/tools/runner/git/deploy.rb,
lib/avm/tools/runner/git/auto_fixup.rb,
lib/avm/tools/runner/git/dirty_files.rb,
lib/avm/tools/runner/git/issue/complete.rb,
lib/avm/tools/runner/git/revisions_test.rb

Defined Under Namespace

Classes: AutoFixup, Commit, Deploy, DirtyFiles, Issue, RevisionsTest

Constant Summary collapse

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.
DOCOPT

Instance Method Summary collapse

Instance Method Details

#gitObject



32
33
34
# File 'lib/avm/tools/runner/git.rb', line 32

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

#repository_pathObject



24
25
26
# File 'lib/avm/tools/runner/git.rb', line 24

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

#repository_path?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/avm/tools/runner/git.rb', line 28

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