Class: GoogleStorage::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- GoogleStorage::InstallGenerator
- Defined in:
- lib/generators/google_storage/install/install_generator.rb
Overview
Copies a google_storage.yml file into your applications config directory and a rake file into your lib/tasks directory
Instance Method Summary collapse
-
#generate_layout ⇒ Object
Copies a google_storage.yml template into your config directory and adds some rake tasks.
Instance Method Details
#generate_layout ⇒ Object
Copies a google_storage.yml template into your config directory and adds some rake tasks
From your rails application directory run the following rake command:
Example:
rails generate google_storage:install
24 25 26 27 |
# File 'lib/generators/google_storage/install/install_generator.rb', line 24 def generate_layout copy_file 'google_storage.yml', 'config/google_storage.yml' copy_file 'google_storage.rake', 'lib/tasks/google_storage.rake' end |