Sha256: d8b1d0d27ee6f700a5b330031cfbd892fbe874ce0a0ac4838bd222380e4a263b

Contents?: true

Size: 540 Bytes

Versions: 3

Compression:

Stored size: 540 Bytes

Contents

module Stove
  class Action::Dev < Action::Base
    id 'dev'
    description 'Bump a minor version release for development purposes'

    def run
      log.info('Bumping for development release')
      log.debug("Version is currently #{cookbook.version}")
      log.debug("Bumped version is #{dev_version}")

      cookbook.bump(dev_version)

      log.debug("Version is now #{cookbook.version}")
    end

    def dev_version
      split = cookbook.version.split('.').map(&:to_i)
      split[2] += 1
      split.join('.')
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stove-2.0.0 lib/stove/actions/dev.rb
stove-2.0.0.beta.2 lib/stove/actions/dev.rb
stove-2.0.0.beta.1 lib/stove/actions/dev.rb