Class: Jazz::Generators::Scenario
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Jazz::Generators::Scenario
- Includes:
- Thor::Actions
- Defined in:
- lib/jazz/generators/scenario/scenario.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/jazz/generators/scenario/scenario.rb', line 6 def name @name end |
Class Method Details
.source_root ⇒ Object
8 9 10 |
# File 'lib/jazz/generators/scenario/scenario.rb', line 8 def self.source_root File.join(File.dirname(__FILE__)) end |
Instance Method Details
#create ⇒ Object
12 13 14 |
# File 'lib/jazz/generators/scenario/scenario.rb', line 12 def create create_scenario end |
#create_scenario ⇒ Object
16 17 18 |
# File 'lib/jazz/generators/scenario/scenario.rb', line 16 def create_scenario template "templates/scenario.js", "app/scenarios/#{name.downcase.pluralize}_scenario.js" end |