Class: FacebookApp::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/facebook_app/install_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



6
7
8
# File 'lib/generators/facebook_app/install_generator.rb', line 6

def self.source_root
   @source_root ||= File.join(File.dirname(__FILE__), 'templates')
end

Instance Method Details

#add_configurable_fileObject



10
11
12
# File 'lib/generators/facebook_app/install_generator.rb', line 10

def add_configurable_file 
  copy_file 'configurable.yml', 'config/configurable.yml'
end

#remove_unwanted_filesObject



14
15
16
# File 'lib/generators/facebook_app/install_generator.rb', line 14

def remove_unwanted_files
  remove_file "public/index.html"
end