Sha256: 499dff74cd0d748639103a6b1d4dcbcd7edb5972f72a035da82cc1de3497e099

Contents?: true

Size: 899 Bytes

Versions: 5

Compression:

Stored size: 899 Bytes

Contents

class EnjuLeaf::QuickInstallGenerator < Rails::Generators::Base
  source_root File.expand_path('../templates', __FILE__)

  def quick_install
    environment = ENV['RAILS_ENV'] || 'development'
    gsub_file 'config/schedule.rb', /^set :environment, :development$/,
      "set :environment, :#{environment}"
    rake("enju_seed_engine:install:migrations")
    rake("enju_library_engine:install:migrations")
    rake("enju_biblio_engine:install:migrations")
    rake("enju_manifestation_viewer_engine:install:migrations")
    rake("enju_subject_engine:install:migrations")
    rake("enju_inventory_engine:install:migrations")
    if !ENV['ENJU_SKIP_CONFIG']
      generate("enju_seed:setup")
      generate("enju_library:setup")
      generate("enju_biblio:setup")
      generate("enju_circulation:setup")
      generate("enju_subject:setup")
      generate("enju_inventory:setup")
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
enju_leaf-1.3.6 lib/generators/enju_leaf/quick_install/quick_install_generator.rb
enju_leaf-1.3.5 lib/generators/enju_leaf/quick_install/quick_install_generator.rb
enju_leaf-1.3.4 lib/generators/enju_leaf/quick_install/quick_install_generator.rb
enju_leaf-1.3.4.rc.2 lib/generators/enju_leaf/quick_install/quick_install_generator.rb
enju_leaf-1.3.4.rc.1 lib/generators/enju_leaf/quick_install/quick_install_generator.rb