Class: Avm::Git::Runners::Base
- Inherits:
-
Object
- Object
- Avm::Git::Runners::Base
show all
- Defined in:
- lib/avm/git/runners/base.rb,
lib/avm/git/runners/base/commit.rb,
lib/avm/git/runners/base/deploy.rb,
lib/avm/git/runners/base/subrepo.rb,
lib/avm/git/runners/base/organize.rb,
lib/avm/git/runners/base/dirty_files.rb,
lib/avm/git/runners/base/subrepo/fix.rb,
lib/avm/git/runners/base/subrepo/check.rb,
lib/avm/git/runners/base/subrepo/clone.rb,
lib/avm/git/runners/base/revisions_test.rb
Defined Under Namespace
Classes: Commit, Deploy, DirtyFiles, Organize, RevisionsTest, Subrepo
Constant Summary
collapse
- COMMAND_ARGUMENT =
'git'
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.command_argument ⇒ String
20
21
22
|
# File 'lib/avm/git/runners/base.rb', line 20
def self.command_argument
COMMAND_ARGUMENT
end
|
Instance Method Details
#git ⇒ Object
32
33
34
|
# File 'lib/avm/git/runners/base.rb', line 32
def git
@git ||= ::Avm::Git::Launcher::Base.by_root(repository_path)
end
|
#git_repo ⇒ [EacGit::Local]
37
38
39
|
# File 'lib/avm/git/runners/base.rb', line 37
def git_repo
git.eac_git
end
|
#repository_path ⇒ Object
24
25
26
|
# File 'lib/avm/git/runners/base.rb', line 24
def repository_path
repository_path? ? parsed.path : '.'
end
|
#repository_path? ⇒ Boolean
28
29
30
|
# File 'lib/avm/git/runners/base.rb', line 28
def repository_path?
parsed.path.present?
end
|