Class: Bootswitch::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Generators::Utils
Defined in:
lib/generators/bootswitch/install/install_generator.rb

Instance Method Summary collapse

Methods included from Generators::Utils

#ask_for, #output

Instance Method Details

#helloObject



7
8
9
# File 'lib/generators/bootswitch/install/install_generator.rb', line 7

def hello
output "Welcome to the Bootswitch gem's installation process.", :magenta
end

#install_initializerObject

all public methods in here will be run in order



12
13
14
15
# File 'lib/generators/bootswitch/install/install_generator.rb', line 12

def install_initializer
  output "This installs a basic initializer where you can set the method that stores the name of the bootswatch bootswatch to be displayed.", :magenta
  template "initializer.rb", "config/initializers/bootswitch.rb"
end