Class: Taro::Rails::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/taro/rails/generators/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_type_filesObject

:nocov:



12
13
14
15
16
17
# File 'lib/taro/rails/generators/install_generator.rb', line 12

def create_type_files
  Dir["#{self.class.source_root}/**/*.erb"].each do |tmpl|
    dest_dir = options[:dir].chomp('/')
    template tmpl, "#{dest_dir}/#{File.basename(tmpl).sub('erb', 'rb')}"
  end
end