Sha256: baf4199bd566062c12587ff76add31ae00b5329531909daf2e2bb1cb047dd15f

Contents?: true

Size: 430 Bytes

Versions: 1

Compression:

Stored size: 430 Bytes

Contents

module Bently

  class Devise < Recipe
    GEMFILE_DEF = "gem 'devise'"
    RAILS_GENERATOR = "rails g devise:install"
    MODEL_GENERATOR = "rails g devise"
    ASK_MODEL_GENERATOR = "Model name:"

    def bake
      add_gem(GEMFILE_DEF) || return
      bundle_install
      command RAILS_GENERATOR
      ask_command("#{MODEL_GENERATOR} MODEL", ASK_MODEL_GENERATOR){|a| "#{MODEL_GENERATOR} #{a}" }
      super
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bently-0.0.0 lib/bently/recipe/devise.rb