Class: SocialTokenizer::InstallGenerator

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

Instance Method Summary collapse

Methods included from Generators::Utils

#ask_for, #output

Instance Method Details

#add_initializerObject

all public methods in here will be run in order


14
15
16
17
# File 'lib/generators/social_tokenizer/install/install_generator.rb', line 14

def add_initializer
  output "You probably won't need to configure anything, but you could, if that's your thing.", :magenta
  template "initializer.rb", "config/initializers/social_tokenizer.rb"
end

#helloObject


8
9
10
# File 'lib/generators/social_tokenizer/install/install_generator.rb', line 8

def hello
  output "Go Go SocialTokenizer Installer, Go!", :magenta
end