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