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/issue/deliver.rb,
lib/avm/tools/runner/git/subrepo/check.rb,
lib/avm/tools/runner/git/subrepo/clone.rb,
lib/avm/tools/runner/git/issue/complete.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



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

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

#git_repo[EacGit::Local]

Returns:

  • ([EacGit::Local])


30
31
32
# File 'lib/avm/tools/runner/git.rb', line 30

def git_repo
  git.eac_git
end

#repository_pathObject



17
18
19
# File 'lib/avm/tools/runner/git.rb', line 17

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

#repository_path?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/avm/tools/runner/git.rb', line 21

def repository_path?
  parsed.path.present?
end