Sha256: cddcabd279c621c043dc138fcd8861c01a5ac99ca28d936763653e06c1c112ca

Contents?: true

Size: 883 Bytes

Versions: 76

Compression:

Stored size: 883 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 = 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

76 entries across 76 versions & 10 rubygems

Version Path
amqp-spec-0.3.1 tasks/git.rake
amqp-spec-0.3.0 tasks/git.rake
zmqp-0.0.1 tasks/git.rake
my_scripts-0.1.15 tasks/git.rake
arvicco-amqp-0.6.13 tasks/git.rake
amqp-spec-0.2.7 tasks/git.rake
arvicco-amqp-0.6.11 tasks/git.rake
arvicco-amqp-0.6.10 tasks/git.rake
amqp-spec-0.2.6 tasks/git.rake
arvicco-amqp-0.6.9 tasks/git.rake
amqp-spec-0.2.5 tasks/git.rake
amqp-spec-0.2.4 tasks/git.rake
amqp-spec-0.2.3 tasks/git.rake
amqp-spec-0.2.1 tasks/git.rake
amqp-spec-0.2.0 tasks/git.rake
my_scripts-0.1.14 tasks/git.rake
amqp-events-0.0.3 tasks/git.rake
my_scripts-0.1.13 tasks/git.rake
amqp-events-0.0.2 tasks/git.rake
amqp-spec-0.1.13 tasks/git.rake