Class: KBuilder::Watch::BaseAction

Inherits:
Object
  • Object
show all
Defined in:
lib/k_builder/watch/base_action.rb

Overview

Base Action

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ BaseAction

Returns a new instance of BaseAction.



9
10
11
# File 'lib/k_builder/watch/base_action.rb', line 9

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



7
8
9
# File 'lib/k_builder/watch/base_action.rb', line 7

def options
  @options
end

Instance Method Details

#runObject



13
14
15
# File 'lib/k_builder/watch/base_action.rb', line 13

def run
  raise KBuilder::Watch::Error, 'Descendants of BaseAction must implement the run method'
end