Sha256: a5b6057628677d0be92148db6e38603d64f5ae7d167e7aa4d2d1d0b71e80895b

Contents?: true

Size: 1.12 KB

Versions: 35

Compression:

Stored size: 1.12 KB

Contents

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

prefs[:admin] = config['admin'] unless (config['admin'] == 'none')

if prefer :admin, 'activeadmin'
  add_gem 'activeadmin', '~> 1.0.0.pre2'
elsif prefer :admin, 'rails_admin'
  add_gem 'rails_admin'
end

stage_two do
  say_wizard "recipe stage two"
  if prefer :admin, 'activeadmin'
    say_wizard "recipe installing activeadmin"
    generate 'active_admin:install'
  end
  if prefer :admin, 'rails_admin'
    say_wizard "recipe installing rails_admin"
    generate 'rails_admin:install'
  end
  ### GIT
  git :add => '-A' if prefer :git, true
  git :commit => %Q(-qm "rails_apps_composer: installed #{prefs[:admin]}") if prefer :git, true
end

__END__

name: admin
description: "Adding rails admin gem to your application"
author: JangoSteve

category: admin
requires: [setup]
run_after: [setup]
args: -T

config:
  - admin:
      type: multiple_choice
      prompt: Install admin gem?
      choices: [ ["None", "none"], ["ActiveAdmin", "activeadmin"], ["RailsAdmin", "rails_admin"] ]

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
rails_apps_composer-3.1.14 recipes/admin.rb
rails_apps_composer-3.1.13 recipes/admin.rb
rails_apps_composer-3.1.12 recipes/admin.rb
rails_apps_composer-3.1.11 recipes/admin.rb
rails_apps_composer-3.1.10 recipes/admin.rb
rails_apps_composer-3.1.9 recipes/admin.rb
rails_apps_composer-3.1.8 recipes/admin.rb
rails_apps_composer-3.1.7 recipes/admin.rb
rails_apps_composer-3.1.6 recipes/admin.rb
rails_apps_composer-3.1.5 recipes/admin.rb
rails_apps_composer-3.1.4 recipes/admin.rb
rails_apps_composer-3.1.3 recipes/admin.rb
rails_apps_composer-3.1.2 recipes/admin.rb
rails_apps_composer-3.1.1 recipes/admin.rb
rails_apps_composer-3.1.0 recipes/admin.rb