lib/makesure.rb in makesure-0.0.1 vs lib/makesure.rb in makesure-0.0.2
- old
+ new
@@ -24,18 +24,17 @@
file = File.join(Dir.pwd, "Makesurefile")
Makesure.log("Loading #{file}")
load(file)
abort "No system specifications found" unless Makesure.systems.size > 0
Makesure.log "Loaded #{Makesure.systems.size} system specifications"
- true
rescue Exception => e
if e.instance_of?(SystemExit)
raise
else
Makesure.warn "There was an error loading #{file}"
Makesure.warn "\t" + e.message
Makesure.warn "\t" + e.backtrace.join("\n\t")
- false
+ abort "Couldn't load your Makesurefile"
end
end
def system_with_name(name)
systems.find { |s| s.name.to_s == name.to_s }