lib/caboodle/command.rb in caboodle-0.2.16 vs lib/caboodle/command.rb in caboodle-0.2.18

- old
+ new

@@ -17,30 +17,26 @@ puts `cd #{site_name} && cp -ri #{File.expand_path(File.join(File.dirname(__FILE__), 'app'))}/config .` puts `cd #{site_name} && cp -i #{File.expand_path(File.join(File.dirname(__FILE__), 'app'))}/.gems .` puts `cd #{site_name} && cp -i #{File.expand_path(File.join(File.dirname(__FILE__), 'app'))}/public .` puts `cd #{site_name} && git init` config = File.expand_path(File.join(".",site_name,"config","site.yml")) - Caboodle::Kit.configure_site config + Caboodle::Config.configure_site config puts "Please set a few settings to get started" Caboodle::Kit.ask_user_for_all_missing_settings puts `cd #{site_name} && git add .` puts `cd #{site_name} && git commit -m"initial setup"` when /kit:add/ - Caboodle::Kit.load_kit args.first.capitalize + Caboodle::Config.load_kit args.first.capitalize puts "Dump config" Caboodle::Kit.dump_config puts `git commit -m"kit:add #{args}" -a` when /kit:home/ - if Caboodle::Kit.available_kits.include?(args.first.capitalize) - Caboodle::Site.home_kit = args.first.capitalize - else - puts "Sorry - that Kit isn't available. Try:" - Caboodle::Kit.available_kits.each {|kit| puts kit} - end + Caboodle::Site.home_kit = args.first.capitalize + Caboodle::Kit.dump_config when /kit:list/ Caboodle::Kit.available_kits.each {|kit| puts kit} when /kit:remove/ - Caboodle::Kit.unload_kit args.first.capitalize + Caboodle::Config.unload_kit args.first.capitalize puts `git commit -m"kit:remove #{args}" -a` when /config:list/ configure Caboodle::Site.each{|k,v| puts "#{k}: #{v}"} when /config:set/