Sha256: 1933bf21b1bf6c2f5c819dffe6509c02cbb1772b654635ef94358d2976cbabed

Contents?: true

Size: 1.35 KB

Versions: 7

Compression:

Stored size: 1.35 KB

Contents

# Application template recipe for the rails_apps_composer. Change the recipe here:
# https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/rails_signup_download.rb

if prefer :apps4, 'rails-signup-download'
  prefs[:authentication] = 'devise'
  prefs[:authorization] = 'pundit'
  prefs[:better_errors] = true
  prefs[:deployment] = 'none'
  prefs[:devise_modules] = false
  prefs[:form_builder] = false
  prefs[:git] = true
  prefs[:local_env_file] = false
  prefs[:pry] = false
  prefs[:quiet_assets] = true
  prefs[:starter_app] = false
  after_everything do
    generate 'pages:authorized -f'

    repo = 'https://raw.github.com/RailsApps/rails-signup-download/master/'

    # >-------------------------------[ Controllers ]--------------------------------<

    copy_from_repo 'app/controllers/products_controller.rb', :repo => repo

    # >-------------------------------[ Views ]--------------------------------<

    copy_from_repo 'app/views/visitors/index.html.erb', :repo => repo
    copy_from_repo 'app/views/products/product.pdf', :repo => repo

    # >-------------------------------[ Routes ]--------------------------------<

    copy_from_repo 'config/routes.rb', :repo => repo

  end
end

__END__

name: rails_signup_download
description: "rails-signup-download starter application"
author: RailsApps

requires: [core]
run_after: [git]
category: apps

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rails_apps_composer-2.6.6 recipes/rails_signup_download.rb
rails_apps_composer-2.6.5 recipes/rails_signup_download.rb
rails_apps_composer-2.6.4 recipes/rails_signup_download.rb
rails_apps_composer-2.6.3 recipes/rails_signup_download.rb
rails_apps_composer-2.6.2 recipes/rails_signup_download.rb
rails_apps_composer-2.6.1 recipes/rails_signup_download.rb
rails_apps_composer-2.6.0 recipes/rails_signup_download.rb