Sha256: b8e13cb1120fadba8ea4ba39c7b64af38caf17c2a8cf796eed74253ad9b4aff6

Contents?: true

Size: 1.23 KB

Versions: 4

Compression:

Stored size: 1.23 KB

Contents

module CustomizableBootstrap
  class InstallGenerator < Rails::Generators::Base
    source_root File.expand_path("../templates", __FILE__)
    require File.expand_path('../../utils', __FILE__)
    include Generators::Utils
    
    def hello
      output "Welcome to the Customizable Bootstrap gem's installation process.", :magenta
    end
    
    # all public methods in here will be run in order
    def copy_template_files
      output "What you need are some files to customize", :magenta
      template "stylesheets/colors.css.scss", "app/assets/stylesheets/customizable_bootstrap/colors.css.scss"
      template "stylesheets/font.css.scss", "app/assets/stylesheets/customizable_bootstrap/font.css.scss"
      template "stylesheets/grid.css.scss", "app/assets/stylesheets/customizable_bootstrap/grid.css.scss"
      template "stylesheets/index.css.scss", "app/assets/stylesheets/customizable_bootstrap/index.css.scss"
      template "stylesheets/layers.css.scss", "app/assets/stylesheets/customizable_bootstrap/layers.css.scss"
      template "stylesheets/overrides.css.scss", "app/assets/stylesheets/customizable_bootstrap/overrides.css.scss"
      template "javascripts/index.js", "app/assets/javascripts/customizable_bootstrap/index.js"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
customizable_bootstrap-0.9.5 lib/generators/customizable_bootstrap/install/install_generator.rb
customizable_bootstrap-0.9.4 lib/generators/customizable_bootstrap/install/install_generator.rb
customizable_bootstrap-0.9.1 lib/generators/customizable_bootstrap/install/install_generator.rb
customizable_bootstrap-0.9.0 lib/generators/customizable_bootstrap/install/install_generator.rb