class YJCocoa::GitTagDelete

Usage

Public Instance Methods

run() click to toggle source
# File lib/yjcocoa/git/git_tag_delete.rb, line 22
def run
    tag = `git tag`.split("\n").last
    if tag
        answer = self.askWithAnswers("是否删除 tag #{tag}", ["Yes", "No"])
        if answer == "yes"
            system("YJCocoa git tag --delete=#{tag}")
        end
        else
        puts "暂无 Tag".green
        self.banner!
    end
end