Sha256: 7608957392c3448830c140606d6d9b3148dd9396442ad52eae9a4e39076b6670

Contents?: true

Size: 507 Bytes

Versions: 4

Compression:

Stored size: 507 Bytes

Contents

class Capricorn::CLI::Releaser < Capricorn::CLI
  include Capricorn::Helpers

  namespace :release

  desc "patch", "release a new patch"
  def patch
    release_version(:patch)
  end

  desc "minor", "release a new minor"
  def minor
    release_version(:minor)
  end

  desc "major", "release a new major"
  def major
    release_version(:major)
  end

private

  def release_version(level)
    invoke "build:#{level}"
    if $last_version
      invoke "deploy:version", [$last_version]
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
capricorn-2.0.11 lib/capricorn-client/cli/releaser.rb
capricorn-2.0.10 lib/capricorn-client/cli/releaser.rb
capricorn-2.0.9 lib/capricorn-client/cli/releaser.rb
capricorn-2.0.8 lib/capricorn-client/cli/releaser.rb