Class: Pancake::Generators::Short
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Pancake::Generators::Short
- Includes:
- Thor::Actions
- Defined in:
- lib/pancake/generators/short_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
6 7 8 |
# File 'lib/pancake/generators/short_generator.rb', line 6 def self.source_root File.join(File.dirname(__FILE__), "templates") end |
Instance Method Details
#stack ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/pancake/generators/short_generator.rb', line 14 def stack say "Creating The Short Stack For #{stack_name}" directory "short/%stack_name%", stack_name template File.join(self.class.source_root, "common/dotgitignore"), "#{stack_name}/.gitignore" template File.join(self.class.source_root, "common/dothtaccess"), "#{stack_name}/lib/#{stack_name}/public/.htaccess" template File.join(self.class.source_root, "common/Gemfile"), "#{stack_name}/Gemfile" end |