Class: Hightail::Generator
- Inherits:
-
Rails::Generators::AppGenerator
- Object
- Rails::Generators::AppGenerator
- Hightail::Generator
- Defined in:
- lib/hightail/generators/app_generator.rb
Instance Method Summary collapse
- #finish_template ⇒ Object
- #hightail_customization ⇒ Object
-
#initialize(*args) ⇒ Generator
constructor
A new instance of Generator.
Constructor Details
#initialize(*args) ⇒ Generator
Returns a new instance of Generator.
33 34 35 36 |
# File 'lib/hightail/generators/app_generator.rb', line 33 def initialize(*args) raise Rails::Generators::Error, 'Options should be given after the application name. For details run: hightail --help' if args[0].blank? super end |
Instance Method Details
#finish_template ⇒ Object
38 39 40 41 |
# File 'lib/hightail/generators/app_generator.rb', line 38 def finish_template invoke :hightail_customization super end |
#hightail_customization ⇒ Object
43 44 45 46 47 48 49 |
# File 'lib/hightail/generators/app_generator.rb', line 43 def hightail_customization build :bundler build :rspec unless [:skip_rspec] build :rvm unless [:skip_rvm] build :remove_public_index build :remove_rails_logo end |