Class: Kthxbye::Generators::KthxbyeGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/kthxbye/kthxbye_generator.rb

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details



17
18
19
# File 'lib/generators/kthxbye/kthxbye_generator.rb', line 17

def self.banner
  "#{$0} kthxbye #{self.arguments.map{ |a| a.usage }.join(' ')} [options]"
end

+ (Object) source_root



13
14
15
# File 'lib/generators/kthxbye/kthxbye_generator.rb', line 13

def self.source_root
  @source_root ||= File.join(File.dirname(__FILE__), 'templates')
end

Instance Method Details

- (Object) install_all



21
22
23
24
25
26
27
28
# File 'lib/generators/kthxbye/kthxbye_generator.rb', line 21

def install_all
  install_javascripts
  install_css
  install_images
  install_gems

  puts "Successfully installed Kthxbye resources in public/"
end