Top Level Namespace
Defined Under Namespace
Modules: Sunedison
Instance Method Summary collapse
Instance Method Details
#file_test(test, file, msg) ⇒ Object
1 2 3 4 5 6 7 8 9 10 11 |
# File 'lib/sunedison-cap/utils.rb', line 1 def file_test( test, file, msg ) begin run "test #{test} #{file}" rescue if( $!.to_str =~ /failed on (.*)/ ) abort "[#{$1}] #{msg}" else abort "#{msg}" end end end |