Class: EventMachineGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/event_machine/event_machine_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_eventObject



9
10
11
12
# File 'lib/generators/event_machine/event_machine_generator.rb', line 9

def generate_event
  template "event.rb", "#{EventMachine::Hooks::EVENTS_DIR}/#{parsed_event_name}_event.rb"
  template "functional_test.rb", "test/functional/events/#{parsed_event_name}_test.rb"
end