Class: RefinerycmsPortfolioGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/refinerycms_portfolio/refinerycms_portfolio_generator.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) generate



10
11
12
13
14
# File 'lib/generators/refinerycms_portfolio/refinerycms_portfolio_generator.rb', line 10

def generate
  Dir.glob(File.expand_path('../templates/**/**', __FILE__)).each do |path|
    template path, plugin_path_for(path) unless File.directory?(path)
  end
end