lib/generators/dutchman/install/install_generator.rb in flying_dutchman-0.4.0 vs lib/generators/dutchman/install/install_generator.rb in flying_dutchman-0.5.0

- old
+ new

@@ -24,15 +24,14 @@ puts "Arr. The Dutchman must have a captain." puts "Rerun with --captain=normalize/skeleton/bootstrap" else puts "" - puts "The Flying Dutchman" - puts "Your Captain is #{options[:captain]}." + puts "===> The Flying Dutchman" + puts "===> Your Captain is #{options[:captain]}." puts "" - # copy_file "assets/stylesheets/#{options[:captain]}/#{options[:captain]}.scss", "vendor/assets/stylesheets/#{options[:captain]}.scss" if File.exist?(app_scss) insert_into_file app_scss, css_inject, :after => "require_self\n" elsif File.exist?(app_css) insert_into_file app_css, css_inject, :after => "require_self\n" @@ -49,15 +48,22 @@ say_status('','The Dutchman was unable to locate an application.js.') end end if custom=="yes" - copy_file "assets/stylesheets/#{options[:captain]}/.", "vendor/assets/stylesheets/#{options[:captain]}/." + if captain=="normalize" + puts "" + puts "===> Arrr. You can't customize Normalize." + puts "===> Try custom with Bootstrap or Skeleton." + else + copy_file "assets/stylesheets/#{options[:captain]}/#{options[:captain]}-custom.scss", "vendor/assets/stylesheets/#{options[:captain]}/#{options[:captain]}.scss" + copy_file "assets/stylesheets/#{options[:captain]}/_custom.scss", "vendor/assets/stylesheets/#{options[:captain]}/_custom.scss" + end end puts "" - puts "Your ship is built." - puts "Welcome Aboard!" + puts "===> Your ship is built." + puts "===> Welcome Aboard!" puts "" end end end