Sha256: cac563fc44ec607f54a267d8b221376a767eee91e3f91374b1b432fd8607dd59

Contents?: true

Size: 1.65 KB

Versions: 9

Compression:

Stored size: 1.65 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] = 'roles'
  prefs[:better_errors] = true
  prefs[:devise_modules] = false
  prefs[:form_builder] = false
  prefs[:git] = true
  prefs[:local_env_file] = false
  prefs[:pry] = false
  prefs[:quiet_assets] = true
  prefs[:pages] = 'users'
  prefs[:locale] = 'none'
  stage_three do
    say_wizard "recipe stage three"
    repo = 'https://raw.github.com/RailsApps/rails-signup-download/master/'

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

    copy_from_repo 'app/controllers/visitors_controller.rb', :repo => repo
    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

    # >-------------------------------[ Tests ]--------------------------------<

    copy_from_repo 'spec/features/users/product_acquisition_spec.rb', :repo => repo
    copy_from_repo 'spec/controllers/products_controller_spec.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

9 entries across 9 versions & 1 rubygems

Version Path
rails_apps_composer-3.0.26 recipes/rails_signup_download.rb
rails_apps_composer-3.0.25 recipes/rails_signup_download.rb
rails_apps_composer-3.0.24 recipes/rails_signup_download.rb
rails_apps_composer-3.0.23 recipes/rails_signup_download.rb
rails_apps_composer-3.0.22 recipes/rails_signup_download.rb
rails_apps_composer-3.0.21 recipes/rails_signup_download.rb
rails_apps_composer-3.0.20 recipes/rails_signup_download.rb
rails_apps_composer-3.0.19 recipes/rails_signup_download.rb
rails_apps_composer-3.0.18 recipes/rails_signup_download.rb