Class: Pancake::Generators::Micro

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

Instance Method Summary collapse

Methods inherited from Base

source_root

Instance Method Details

#stackObject



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

def stack
  say "Creating The Stack For #{stack_name}"
  directory "micro/%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}/public/.htaccess"
end