Method: Cnvrg::Images#store_image_build_commands

Defined in:
lib/cnvrg/Images.rb

#store_image_build_commands(working_dir, cmd) ⇒ Object



85
86
87
88
89
90
91
92
93
94
95
96
97
98
# File 'lib/cnvrg/Images.rb', line 85

def store_image_build_commands(working_dir, cmd)
  begin
  custom_image_file = working_dir+"/.cnvrg/custom_image.txt"
  if !File.exist? custom_image_file
    FileUtils.touch [custom_image_file]
  end
  File.open(custom_image_file, 'a' ) do  |f|
    f.puts cmd
  end
  rescue
  end


end