Sha256: cbeecfa4ded72cc4f8128290ef1f53476a824a475c98984198a938eb3596764b

Contents?: true

Size: 1.37 KB

Versions: 1

Compression:

Stored size: 1.37 KB

Contents

set :app_name, app_name
set :titleized_app_name, get(:app_name).titleize
set :underscorized_app_name, get(:app_name).underscore
set :dasherized_app_name, get(:app_name).dasherize

run_action(:cleaning) do
  clean_gemfile
  gather_gem("spring")
end

run_action(:asking) do
  ask :database
  ask :devise
  ask :admin
  ask :angular_admin
  ask :delayed_job
  ask :schedule
  ask :error_reporting
  ask :pundit
  ask :i18n
  ask :api
  ask :paperclip
  ask :mailer
  ask :heroku
  ask :github
end

run_action(:recipe_loading) do
  create :readme
  create :heroku
  create :ci
  create :style
  create :puma
  create :database
  create :annotate
  create :ruby
  create :env
  create :bower
  create :editorconfig
  create :aws_sdk
  create :schedule
  create :mailer
  create :i18n
  create :pry
  create :devise
  create :admin
  create :angular_admin
  create :seeds
  create :error_reporting
  create :delayed_job
  create :pundit
  create :testing
  create :secrets
  create :git
  create :api
  create :rack_cors
  create :paperclip
  create :tzinfo
  create :script
  create :github
  create :cleanup
end

info "Gathered enough information. Applying the template. Wait a minute."

run_action(:gem_install) do
  build_gemfile
  run "bundle install"
end

run_action(:database_creation) do
  run "bundle exec rake db:create db:migrate"
  run "RACK_ENV=test bundle exec rake db:create db:migrate"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
potassium-2.3.0 lib/potassium/templates/application.rb