class Stratosphere::Generators::InstallGenerator

Attributes

bucket[RW]
key[RW]
secret[RW]

Public Instance Methods

create_initializer() click to toggle source
# 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() click to toggle source
# 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() click to toggle source
# File lib/generators/stratosphere/install/install_generator.rb, line 10
def set_options
  STDOUT.flush
  print 'What is your S3 bucket name?: '
  @bucket = gets.chomp
end