Class: Overlook::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#install_filesObject



5
6
7
8
9
10
11
12
13
# File 'lib/generators/overlook/install/install_generator.rb', line 5

def install_files
  source = self.class.source_root

  Dir["#{source}/**/*"].each do |file|
    next if File.directory?(file)
    path = file.gsub(source, '').gsub(/^\//, '')
    copy_file path, "app/#{path}"
  end
end