task :default do begin load "./config.rb" # loads CONFIG if defined?(CONFIG) && CONFIG[:runtime] && CONFIG[:plugins] system("ruby graft.rb") else puts("Config is not appropriate.") exit 1 end rescue => e puts("Task failed: #{e.message}") end end