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

Inherits:
Object
  • 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/subrepo.rb,
lib/avm/tools/runner/git/organize.rb,
lib/avm/tools/runner/git/auto_commit.rb,
lib/avm/tools/runner/git/dirty_files.rb,
lib/avm/tools/runner/git/subrepo/fix.rb,
lib/avm/tools/runner/git/subrepo/check.rb,
lib/avm/tools/runner/git/subrepo/clone.rb,
lib/avm/tools/runner/git/revisions_test.rb

Defined Under Namespace

Classes: AutoCommit, Commit, Deploy, DirtyFiles, Issue, Organize, RevisionsTest, Subrepo

Instance Method Summary collapse

Instance Method Details

#gitObject



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

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

#repository_pathObject



19
20
21
# File 'lib/avm/tools/runner/git.rb', line 19

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

#repository_path?Boolean

Returns:

  • (Boolean)


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

def repository_path?
  parsed.path.present?
end