class Spree::Auth::Generators::InstallGenerator

Public Class Methods

source_paths() click to toggle source
# File lib/generators/spree/auth/install/install_generator.rb, line 7
def self.source_paths
  paths = superclass.source_paths
  paths << File.expand_path('../templates', __FILE__)
  paths.flatten
end

Public Instance Methods

add_migrations() click to toggle source
# File lib/generators/spree/auth/install/install_generator.rb, line 18
def add_migrations
  run 'bundle exec rake railties:install:migrations FROM=spree_auth'
end
generate_devise_key() click to toggle source
# File lib/generators/spree/auth/install/install_generator.rb, line 13
def generate_devise_key
  return if ENV['CI']
  template 'config/initializers/devise.rb', 'config/initializers/devise.rb'
end
run_migrations() click to toggle source
# File lib/generators/spree/auth/install/install_generator.rb, line 22
def run_migrations
 if options[:migrate]
   run 'bundle exec rake db:migrate VERBOSE=false'
 else
   puts "Skiping rake db:migrate, don't forget to run it!"
 end
end