Class: Stratosphere::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Stratosphere::Generators::InstallGenerator
- Defined in:
- lib/generators/stratosphere/install/install_generator.rb
Instance Attribute Summary collapse
-
#bucket ⇒ Object
Returns the value of attribute bucket.
-
#key ⇒ Object
Returns the value of attribute key.
-
#secret ⇒ Object
Returns the value of attribute secret.
Instance Method Summary collapse
Instance Attribute Details
#bucket ⇒ Object
Returns the value of attribute bucket.
4 5 6 |
# File 'lib/generators/stratosphere/install/install_generator.rb', line 4 def bucket @bucket end |
#key ⇒ Object
Returns the value of attribute key.
4 5 6 |
# File 'lib/generators/stratosphere/install/install_generator.rb', line 4 def key @key end |
#secret ⇒ Object
Returns the value of attribute secret.
4 5 6 |
# File 'lib/generators/stratosphere/install/install_generator.rb', line 4 def secret @secret end |
Instance Method Details
#create_initializer ⇒ Object
16 17 18 |
# File 'lib/generators/stratosphere/install/install_generator.rb', line 16 def create_initializer template 'lib/generators/stratosphere/install/templates/stratosphere.rb.erb', 'config/initializers/stratosphere.rb' end |
#create_views ⇒ Object
20 21 22 23 |
# File 'lib/generators/stratosphere/install/install_generator.rb', line 20 def create_views copy_file 'app/views/_attachment_field.html.erb', 'app/views/stratosphere/_attachment_field.html.erb' copy_file 'app/assets/javascripts/stratosphere/stratosphere.bundled.min.js', 'vendor/assets/javascripts/stratosphere.bundled.min.js' end |
#set_options ⇒ Object
10 11 12 13 14 |
# File 'lib/generators/stratosphere/install/install_generator.rb', line 10 def STDOUT.flush print 'What is your S3 bucket name?: ' @bucket = gets.chomp end |