Sha256: 6af9ad992f993bdf79fcbaffa066d63772b44bfe5cf86b004d594b70ab579fe6

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 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|
    if comment == {}
      comment = 'no comment'
    else
      comment = comment.comment
    end
    sys "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

2 entries across 2 versions & 1 rubygems

Version Path
zfben_rails_rake-0.0.4 tasks/git.rb
zfben_rails_rake-0.0.3 tasks/git.rb