lib/cartup.rb in cartup-0.1.1 vs lib/cartup.rb in cartup-0.1.2

- old
+ new

@@ -26,9 +26,24 @@ googleCloudStorage.uploadFrameWork gitHelper.tagTo frameworkVersion gitHelper.push end + def self.init + CartBinaryUploader.copyTemplateYaml + end + + def self.copyTemplateYaml + fromSourceFile = "./lib/template.yaml" + toDestinationFile = "./cart_uploader.yaml" + CartBinaryUploader.copy_with_path fromSourceFile, toDestinationFile + end + + def self.copy_with_path(src, dst) + FileUtils.mkdir_p(File.dirname(dst)) + FileUtils.cp(src, dst) + end + def self.getConfig begin puts "Creating project config" path = FileUtils.pwd + '/cart_uploader.yaml' yamlFile = YAML.load_file(path)