Sha256: 0ec5f8092fc057a08a894ed398ecdd7584cbb1b72ba330bcc85124adfcc2760c

Contents?: true

Size: 531 Bytes

Versions: 13

Compression:

Stored size: 531 Bytes

Contents

# frozen_string_literal: true

namespace :maquina do
  desc "Install Maquina"
  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, ["maquina:install"]
  end

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
maquina-0.7.2 lib/tasks/install.rake
maquina-0.7.1 lib/tasks/install.rake
maquina-0.5.2 lib/tasks/install.rake
maquina-0.5.1 lib/tasks/install.rake
maquina-0.4.0 lib/tasks/install.rake
maquina-0.3.0 lib/tasks/install.rake
maquina-0.2.5 lib/tasks/install.rake
maquina-0.2.4 lib/tasks/install.rake
maquina-0.2.3 lib/tasks/install.rake
maquina-0.2.2 lib/tasks/install.rake
maquina-0.2.1 lib/tasks/install.rake
maquina-0.2.0 lib/tasks/install.rake
maquina-0.1.0 lib/tasks/install.rake