Class: HappySeed::Generators::StaticBlogGenerator

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/generators/happy_seed/static_blog/static_blog_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_rails_pluginObject



8
9
10
11
12
13
14
15
16
# File 'lib/generators/happy_seed/static_blog/static_blog_generator.rb', line 8

def generate_rails_plugin
  source_root = File.expand_path('../templates', __FILE__)
  args.shift
  app_name = args.shift

  self.destination_root = app_name

  directory "."
end