Sha256: 4479d79d98c158864658e415619ff5111195f2e721aa83aa71f37bfd6472be8e

Contents?: true

Size: 701 Bytes

Versions: 5

Compression:

Stored size: 701 Bytes

Contents

class Cms::FortressGenerator < Rails::Generators::Base
  # source_root File.expand_path('../templates', __FILE__)
  source_root File.expand_path('../../../../..', __FILE__)

  def install_devise
    generate("devise:install")
  end

  def install_comfortable_mexican_sofa
    generate("comfy:cms")
  end

  def generate_migrations
    rake("cms_fortress_engine:install:migrations")
  end

  def generate_assets
    directory 'app/assets/javascripts/cms/fortress',
      'app/assets/javascripts/cms/fortress'

    directory 'app/assets/stylesheets/cms/fortress',
      'app/assets/stylesheets/cms/fortress'
  end

  def show_readme
    readme 'lib/generators/cms/fortress/templates/README'
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cms-fortress-1.0.7 lib/generators/cms/fortress/fortress_generator.rb
cms-fortress-1.0.6 lib/generators/cms/fortress/fortress_generator.rb
cms-fortress-1.0.5 lib/generators/cms/fortress/fortress_generator.rb
cms-fortress-1.0.4 lib/generators/cms/fortress/fortress_generator.rb
cms-fortress-1.0.3 lib/generators/cms/fortress/fortress_generator.rb