Class: Stove::Action::Bump

Inherits:
Base
  • Object
show all
Defined in:
lib/stove/actions/bump.rb

Instance Attribute Summary

Attributes inherited from Base

#cookbook, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Mixin::Optionable

extended, included

Methods included from Mixin::Validatable

#validate

Constructor Details

This class inherits a constructor from Stove::Action::Base

Instance Method Details

#runObject



15
16
17
18
19
20
21
22
23
# File 'lib/stove/actions/bump.rb', line 15

def run
  log.info('Performing version bump')
  log.debug("Version is currently #{cookbook.version}")
  log.debug("Bumped version is #{options[:version]}")

  cookbook.bump(options[:version])

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