Sha256: 36dfc95db7d279ecad6f4b17e8cbd45a911fdd427fc458487c512963057627e5

Contents?: true

Size: 755 Bytes

Versions: 8

Compression:

Stored size: 755 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:spec)

task :default => :spec

namespace :version do
  desc "Bump version for specified type (pre, major, minor patch)"
  task :bump, [:type] do |_, args|
    bump_version_for(args.type)
  end
end

namespace :publish do
  desc "Publish prerelease version"
  task :prerelease do
    Rake::Task['version:bump'].invoke('pre')
    Rake::Task['release'].invoke
  end

  desc "Publish release version"
  task :release do
    Rake::Task['version:bump'].invoke('minor')
    Rake::Task['release'].invoke
  end
end

def bump_version_for(version_type)
  sh "gem bump --version #{version_type} " +
         "&& bundle install " +
         "&& git commit -a --amend --no-edit"
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby-terraform-0.13.2.pre38 Rakefile
ruby-terraform-0.13.2.pre37 Rakefile
ruby-terraform-0.13.2.pre36 Rakefile
ruby-terraform-0.13.2.pre35 Rakefile
ruby-terraform-0.13.2.pre34 Rakefile
ruby-terraform-0.13.2.pre33 Rakefile
ruby-terraform-0.13.2.pre32 Rakefile
ruby-terraform-0.13.2.pre31 Rakefile