Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ruby_version = ask("What ruby version is your app?")
ruby_gemset = ask("What do you want to name your gemset?")
file(".ruby-version", ruby_version)
file(".ruby-gemset", ruby_gemset)
gem 'haml-rails'
gem 'bootstrap-sass'
gem 'devise'
gem 'omniauth'
gem 'omniauth-facebook'
after_bundle do
generate 'devise:install'
generate 'devise user'
route "get '/auth/:provider/callback', to: 'sessions#create'"
rake("db:migrate")
initializer 'omniauth.rb', <<-CODE
Rails.application.config.middleware.use OmniAuth::Builder do
provider :developer unless Rails.env.production?
provider :facebook, ENV['FACEBOOK_KEY'], ENV['FACEBOOK_SECRET']
end
CODE
file "app/assets/stylesheets/application.scss", <<-CODE
@import "bootstrap-sprockets";
@import "bootstrap";
CODE
git :init
git add: "."
git commit: %Q{ -m 'Initial commit' }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment