Class: Pancake::Generators::Short

Inherits:
Base
  • Object
show all
Defined in:
lib/pancake/generators/short_generator.rb

Instance Method Summary collapse

Methods inherited from Base

source_root

Instance Method Details

#stackObject



7
8
9
10
11
12
13
# File 'lib/pancake/generators/short_generator.rb', line 7

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"

end