Class: Hightail::Generator

Inherits:
Rails::Generators::AppGenerator
  • Object
show all
Defined in:
lib/hightail/generators/app_generator.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Generator

Returns a new instance of Generator.

Raises:

  • (Rails::Generators::Error)


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_templateObject



38
39
40
41
# File 'lib/hightail/generators/app_generator.rb', line 38

def finish_template
  invoke :hightail_customization
  super
end

#hightail_customizationObject



43
44
45
46
47
48
49
# File 'lib/hightail/generators/app_generator.rb', line 43

def hightail_customization
  build :bundler
  build :rspec unless options[:skip_rspec]
  build :rvm unless options[:skip_rvm]
  build :remove_public_index
  build :remove_rails_logo
end