class OfflineDeployer::Tagger
Public Instance Methods
tag(tag_name, tag_message, commit = nil)
click to toggle source
# File lib/offline_deployer/tagger.rb, line 3 def tag(tag_name, tag_message, commit = nil) `git tag -a #{tag_name} -m "#{tag_message}" #{commit.presence}` puts "Created new tag - #{tag_name}" puts 'If you want to make a new release, run release maker.' end
tag_list()
click to toggle source
# File lib/offline_deployer/tagger.rb, line 9 def tag_list `cd #{app_root} && git tag -l #{tag_list_sort}`.split("\n") end
Private Instance Methods
app_root()
click to toggle source
# File lib/offline_deployer/tagger.rb, line 23 def app_root OfflineDeployer.settings.app_root end
tag_list_sort()
click to toggle source
# File lib/offline_deployer/tagger.rb, line 19 def tag_list_sort Rails.env.development? ? '--sort=-version:refname' : '| sort -Vr' end