lib/makesure.rb in makesure-0.0.2 vs lib/makesure.rb in makesure-0.0.3
- old
+ new
@@ -18,12 +18,16 @@
# global options
attr_accessor :uid,
:alert_options,
:log_level
+ def makesurefile
+ File.expand_path(File.join(Dir.pwd, "Makesurefile"))
+ end
+
def load_system_defs
- file = File.join(Dir.pwd, "Makesurefile")
- Makesure.log("Loading #{file}")
+ file = makesurefile
+ Makesure.log("Loading Makesurefile")
load(file)
abort "No system specifications found" unless Makesure.systems.size > 0
Makesure.log "Loaded #{Makesure.systems.size} system specifications"
rescue Exception => e
if e.instance_of?(SystemExit)