Sha256: d7462b6aafd06765e25d7780bc65264195f4f997706af25b7ff92cb3e4f8437b
Contents?: true
Size: 1.75 KB
Versions: 4
Compression:
Stored size: 1.75 KB
Contents
# Application template recipe for the rails_apps_composer. Change the recipe here: # https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/prelaunch.rb if prefer :prelaunch_app, 'signup_app' raise StandardError.new "Sorry. The prelaunch recipe is not implemented." after_bundler do say_wizard "recipe running after 'bundle install'" repo = 'https://raw.github.com/RailsApps/rails-prelaunch-signup/master/' # >-------------------------------[ Create a git branch ]--------------------------------< if prefer :git, true if prefer :prelaunch_branch, 'master' unless prefer :main_branch, 'none' say_wizard "renaming git branch 'master' to '#{prefs[:main_branch]}' for starter app" git :branch => "-m master #{prefs[:main_branch]}" git :checkout => "-b master" else say_wizard "creating prelaunch app on git branch 'master'" end else say_wizard "creating new git branch '#{prefs[:prelaunch_branch]}' for prelaunch app" git :checkout => "-b #{prefs[:prelaunch_branch]}" end end # >-------------------------------[ Create an initializer file ]--------------------------------< copy_from_repo 'config/initializers/prelaunch-signup.rb', :repo => repo say_wizard "PRELAUNCH_SIGNUP NOT IMPLEMENTED" ### GIT ### git :add => '.' if prefer :git, true git :commit => "-aqm 'rails_apps_composer: prelaunch app'" if prefer :git, true end # after_bundler end # signup_app __END__ name: prelaunch description: "Generates a Prelaunch Signup App" author: RailsApps requires: [setup, gems, auth, models, controllers, views, frontend, database] run_after: [setup, gems, auth, models, controllers, views, frontend, database] category: apps
Version data entries
4 entries across 4 versions & 1 rubygems