Sha256: 210366c48e906e0d91cf9fb4032326d3e5cbfbf185a37170c0c4a3e25d3f0206

Contents?: true

Size: 1.68 KB

Versions: 2

Compression:

Stored size: 1.68 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(:after_create_rails) do
  rubocop_revision
end

run_action(:cleaning) do
  clean_gemfile
end

run_action(:add_utils) do
  gather_gem("enumerize")
end

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

run_action(:recipe_loading) do
  create :rails
  create :readme
  create :heroku
  create :ci
  create :style
  create :puma
  create :env
  create :database_container
  create :database
  create :annotate
  create :listen
  create :ruby
  create :yarn
  create :editorconfig
  create :aws_sdk
  create :mailer
  create :background_processor
  create :schedule
  create :i18n
  create :pry
  create :better_errors
  create :devise
  create :admin
  create :angular_admin
  create :seeds
  create :error_reporting
  create :pundit
  create :testing
  create :secrets
  create :api
  create :draper
  create :power_types
  create :rack_cors
  create :active_storage
  create :paperclip
  create :tzinfo
  create :script
  create :github
  create :cleanup
  create :front_end
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 rails db:create db:migrate"
  run "RACK_ENV=test bundle exec rails db:create db:migrate"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
potassium-5.2.2 lib/potassium/templates/application.rb
potassium-5.2.1 lib/potassium/templates/application.rb