lib/minke/helpers/shell.rb in minke-1.11.8 vs lib/minke/helpers/shell.rb in minke-1.11.9

- old
+ new

@@ -22,8 +22,16 @@ end def write_file filename, data File.open(filename, 'w') { |file| file.write(data) } end + + def read_file filename + File.open(filename, 'rb') { |file| file.read }.strip + end + + def exist? filename + File.exist? filename + end end end end \ No newline at end of file