Method: MapTool::Tag#commit_file

Defined in:
lib/maptool/tag/tag.rb

#commit_fileObject



81
82
83
84
85
86
87
88
89
# File 'lib/maptool/tag/tag.rb', line 81

def commit_file
    puts "update #{TAG_FILE}".green
    localChanges = !(`git stash` =~ /No local changes to save/)
    self.write_file
    `git add .`
    `git commit -m "update #{TAG_FILE}"`
    `git push`
    `git stash pop` if localChanges
end