Class: Stove::Action::Base

Inherits:
Object
  • Object
show all
Extended by:
Mixin::Optionable, Mixin::Validatable
Includes:
Logify
Defined in:
lib/stove/actions/base.rb

Direct Known Subclasses

Bump, Changelog, Dev, Finish, Start, Upload

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Mixin::Optionable

extended, included

Methods included from Mixin::Validatable

validate

Constructor Details

#initialize(cookbook, options = {}) ⇒ Base

Returns a new instance of Base.



13
14
15
# File 'lib/stove/actions/base.rb', line 13

def initialize(cookbook, options = {})
  @cookbook, @options = cookbook, options
end

Instance Attribute Details

#cookbookObject (readonly)

Returns the value of attribute cookbook.



10
11
12
# File 'lib/stove/actions/base.rb', line 10

def cookbook
  @cookbook
end

#optionsObject (readonly)

Returns the value of attribute options.



11
12
13
# File 'lib/stove/actions/base.rb', line 11

def options
  @options
end

Instance Method Details

#runObject

Raises:

  • (Error::AbstractMethod)


17
18
19
# File 'lib/stove/actions/base.rb', line 17

def run
  raise Error::AbstractMethod.new(method: 'Action::Base#run')
end