Sha256: c899938f602813e1638ca070ccc04438e97bb1c0ab6d9302841469a3f1716a09

Contents?: true

Size: 734 Bytes

Versions: 10

Compression:

Stored size: 734 Bytes

Contents

module Leather
  class InstallGenerator < Rails::Generators::Base
    source_root File.expand_path('../../../../../templates/', __FILE__)

    def mount
      route "mount Leather::Engine => '/'"
    end

    def copy_devise_views
      directory("views/devise", Rails.root.join("app", "views", "devise"))
    end

    def copy_pages
      directory("views/pages", Rails.root.join("app", "views", "pages"))
    end

    def copy_bootstrap_variables
      copy_file("bootstrap_variables.css.scss", Rails.root.join("app", "assets", "stylesheets", "bootstrap_variables.css.scss"))
    end

    def copy_high_voltage_config
      copy_file("high_voltage.rb", Rails.root.join("config", "initializers", "high_voltage.rb"))
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
leather-3.3.2 lib/generators/leather/install/install_generator.rb
leather-3.3.1 lib/generators/leather/install/install_generator.rb
leather-3.3.0 lib/generators/leather/install/install_generator.rb
leather-3.2.0 lib/generators/leather/install/install_generator.rb
leather-0.2.29 lib/generators/leather/install/install_generator.rb
leather-0.2.27 lib/generators/leather/install/install_generator.rb
leather-0.2.26 lib/generators/leather/install/install_generator.rb
leather-0.2.25 lib/generators/leather/install/install_generator.rb
leather-0.2.24 lib/generators/leather/install/install_generator.rb
leather-0.2.23 lib/generators/leather/install/install_generator.rb