Class: Helpers::Git
Class Method Summary collapse
Methods inherited from Runner
Class Method Details
.cmd_archive(temp_archive, opt_tag) ⇒ Object
5 6 7 |
# File 'lib/git.rb', line 5 def cmd_archive temp_archive, opt_tag "git archive --format=tar -o \"#{temp_archive}\" --prefix=/ #{opt_tag}" end |
.fetch_tags ⇒ Object
9 10 11 |
# File 'lib/git.rb', line 9 def runcmd ['git', 'tag'] end |
.list_tags(tags) ⇒ Object
13 14 15 16 |
# File 'lib/git.rb', line 13 def puts "Valid tags are:" .each.map { |tag| puts "- #{tag}" } end |