Class: FacebookApp::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- FacebookApp::InstallGenerator
- 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_root ⇒ Object
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_file ⇒ Object
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_files ⇒ Object
14 15 16 |
# File 'lib/generators/facebook_app/install_generator.rb', line 14 def remove_unwanted_files remove_file "public/index.html" end |