lib/cartup.rb in cartup-0.1.5 vs lib/cartup.rb in cartup-0.1.6

- old
+ new

@@ -3,10 +3,12 @@ require 'yaml' require 'json' require 'ostruct' require 'google_cloud_storage' require 'git_helper' +require 'cartup_command_helper' +require 'cart_logger' module CartBinaryUploader def self.run config = getConfig @@ -43,17 +45,17 @@ FileUtils.cp(src, dst) end def self.getConfig begin - puts "Creating project config" + CartLogger.logInfo "Creating project config" path = FileUtils.pwd + '/cart_uploader.yaml' yamlFile = YAML.load_file(path) object = JSON.parse(yamlFile.to_json, object_class: OpenStruct) - puts "project config Created" + CartLogger.logInfo "project config Created" object rescue SystemCallError - puts "Problem to find or pase yaml file" + CartLogger.logError "Problem to find or pase yaml file" exit end end