Module: Buildizer::Packager::GitMod
- Included in:
- Buildizer::Packager
- Defined in:
- lib/buildizer/packager/git_mod.rb
Instance Method Summary collapse
Instance Method Details
#git_available? ⇒ Boolean
4 5 6 7 |
# File 'lib/buildizer/packager/git_mod.rb', line 4 def git_available? res = raw_command 'git status' res.status.success? end |
#git_remote_url ⇒ Object
9 10 11 12 13 |
# File 'lib/buildizer/packager/git_mod.rb', line 9 def git_remote_url return unless git_available? res = raw_command 'git config --get remote.origin.url' res.stdout.strip end |