Sha256: c9520f79de7a03cf4433c1d11b45f029f268c90563898313dcd3f8eeaac8ae4e
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 Bytes
Contents
namespace 'git' do desc 'git pull' task :pull do sys 'git pull' end desc 'git commit with your comment' task :commit, :comment do |task, comment| unless defined? comment.comment comment = 'no comment' else comment = comment.comment end sys "git add .;git commit -m '#{comment}' -a" end desc 'git push with your comment' task :push, :comment, :needs => :commit do |task, comment| sys 'git push' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zfben_rails_rake-0.0.5 | tasks/git.rb |