Class: Gaskit::Generators::FlowGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Gaskit::Generators::FlowGenerator
- Defined in:
- lib/generators/gaskit/operation/flow_generator.rb
Overview
Generates a new Gaskit::Flow class using the class-based DSL.
This generator creates a flow subclass using statically defined steps.
Instance Method Summary collapse
Instance Method Details
#create_flow_file ⇒ Object
29 30 31 |
# File 'lib/generators/gaskit/operation/flow_generator.rb', line 29 def create_flow_file template "flow.rb.tt", File.join("app/flows", class_path, "#{file_name}_flow.rb") end |