Class: Cheffish::ChefRun::EventSink

Inherits:
Object
  • Object
show all
Defined in:
lib/cheffish/chef_run.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEventSink

Returns a new instance of EventSink.



144
145
146
# File 'lib/cheffish/chef_run.rb', line 144

def initialize
  @events = []
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



150
151
152
# File 'lib/cheffish/chef_run.rb', line 150

def method_missing(method, *args)
  @events << [ method, *args ]
end

Instance Attribute Details

#eventsObject (readonly)

Returns the value of attribute events.



148
149
150
# File 'lib/cheffish/chef_run.rb', line 148

def events
  @events
end