Class: StylisticGenerator

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

Constant Summary collapse

@@styles_dest =
'public/stylesheets/stylistic/'
@@framework_dest =
'public/stylesheets/framework/'
@@js_dest =
'public/javascripts/jquery/'

Instance Method Summary collapse

Instance Method Details

#install_filesObject



22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/generators/stylistic/stylistic_generator.rb', line 22

def install_files

  if options.jquery
    clobber_prototype
    include_jquery
  end
  
  include_jqueryui if options.jqueryui 
  
  if options.squaregrid
    include_squaregrid
  elsif options.less
    include_less
  elsif options.blueprint
    include_blueprint
  elsif options.gs
    include_960
  end
  
  include_scaffold if options.scaffoldstyles
  include_html5reset if options.html5reset

end