Sha256: eed6d33600ca0f044a138fb2fb27ade234d0fccf09300c3586a3f790aa4457d8

Contents?: true

Size: 520 Bytes

Versions: 5

Compression:

Stored size: 520 Bytes

Contents

namespace :no_password do
  desc "Install No Password"
  task install: :environment do
    ActiveRecord::Base.connection
  rescue ActiveRecord::NoDatabaseError
    puts "ERROR: database does not exist, run 'rails db:create' first"
  else
    Rails::Command.invoke :generate, ["no_password:install"]
  end

  namespace :install do
    desc "Copy templates from no_password to application"
    task copy_templates: :environment do
      Rails::Command.invoke :generate, ["no_password:install_templates"]
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
no_password_auth-0.5.0 lib/tasks/install.rake
no_password_auth-0.4.1 lib/tasks/install.rake
no_password_auth-0.4.0 lib/tasks/install.rake
no_password_auth-0.3.0 lib/tasks/install.rake
no_password_auth-0.2.1 lib/tasks/install.rake