Sha256: 9dd7a2b8f126f9fa1d4b16a286ba41d2bcc90adbb0df3e2d20e5cc3b45319e18

Contents?: true

Size: 553 Bytes

Versions: 1

Compression:

Stored size: 553 Bytes

Contents

desc "Displays current version"
task :version => :environment do
  puts "Current version is #{VersionMaster::Version.new.to_s}"
end

namespace :version do
  desc "Bump version number"
  task :bump => :environment do
    version = VersionMaster::Version.new
    puts "Bumped version #{version.to_s} --> #{ENV['VER'] ? version.bump(ENV['VER']) : version.bump}"
  end
  
  desc "Set version number"
  task :set => :environment do
    version = VersionMaster::Version.new
    puts "Changed version #{version.to_s} --> #{version.set(ENV['VER'])}"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rdavila-version_master-0.1.1 tasks/version_master_tasks.rake