Sha256: 09cdc1e597e69e28cc6a0191491933c24c95b3863b65e2d2e36880d42a21a536

Contents?: true

Size: 895 Bytes

Versions: 73

Compression:

Stored size: 895 Bytes

Contents

desc "Alias to git:commit"
task :git => 'git:commit'

namespace :git do

  desc "Stage and commit your work [with message]"
  task :commit, [:message] do |t, args|
    puts "Staging new (unversioned) files"
    system "git add --all"
    if args.message
      puts "Committing with message: #{args.message}"
      system %Q[git commit -a -m "#{args.message}" --author arvicco]
    else
      puts "Committing"
      system %Q[git commit -a -m "No message" --author arvicco]
    end
  end

  desc "Push local changes to Github"
  task :push => :commit do
    puts "Pushing local changes to remote"
    system "git push"
  end

  desc "Create (release) tag on Github"
  task :tag => :push do
    tag = CLASS_NAME::VERSION
    puts "Creating git tag: #{tag}"
    system %Q{git tag -a -m "Release tag #{tag}" #{tag}}
    puts "Pushing #{tag} to remote"
    system "git push origin #{tag}"
  end

end

Version data entries

73 entries across 73 versions & 7 rubygems

Version Path
ib-ruby-0.9.2 tasks/git.rake
ib-ruby-0.9.1 tasks/git.rake
ib-ruby-0.9.0 tasks/git.rake
ib-ruby-0.8.5 tasks/git.rake
ib-ruby-0.8.4 tasks/git.rake
ib-ruby-0.8.3 tasks/git.rake
ib-ruby-0.8.1 tasks/git.rake
ib-ruby-0.8.0 tasks/git.rake
ib-ruby-0.7.12 tasks/git.rake
ib-ruby-0.7.11 tasks/git.rake
ib-ruby-0.7.10 tasks/git.rake
ib-ruby-0.7.9 tasks/git.rake
ib-ruby-0.7.8 tasks/git.rake
ib-ruby-0.7.6 tasks/git.rake
ib-ruby-0.7.4 tasks/git.rake
ib-ruby-0.7.3 tasks/git.rake
ib-ruby-0.7.2 tasks/git.rake
ib-ruby-0.7.0 tasks/git.rake
ib-ruby-0.6.1 tasks/git.rake
ib-ruby-0.5.21 tasks/git.rake