lib/stealth/generators/generate.rb in stealth-0.10.6 vs lib/stealth/generators/generate.rb in stealth-1.0.0.pre1

- old
+ new

@@ -11,22 +11,22 @@ def self.source_root File.dirname(__FILE__) + "/generate/flow" end def create_controller - template('controllers/controller.tt', "controllers/#{name.pluralize}_controller.rb") + template('controllers/controller.tt', "bot/controllers/#{name.pluralize}_controller.rb") end def create_replies # Sample Ask Reply - template('replies/ask_reply.tt', "replies/#{name.pluralize}/ask_example.yml") + template('replies/ask_reply.tt', "bot/replies/#{name.pluralize}/ask_example.yml") # Sample Say Replies - template('replies/say_yes_reply.tt', "replies/#{name.pluralize}/say_yes_example.yml") - template('replies/say_no_reply.tt', "replies/#{name.pluralize}/say_no_example.yml") + template('replies/say_yes_reply.tt', "bot/replies/#{name.pluralize}/say_yes_example.yml") + template('replies/say_no_reply.tt', "bot/replies/#{name.pluralize}/say_no_example.yml") end def create_helper - template('helpers/helper.tt', "helpers/#{name}_helper.rb") + template('helpers/helper.tt', "bot/helpers/#{name}_helper.rb") end def edit_flow_map # TODO end