lib/akamai_ccu/cli.rb in akamai_ccu-1.3.8 vs lib/akamai_ccu/cli.rb in akamai_ccu-1.3.9

- old
+ new

@@ -19,10 +19,10 @@ @network = Endpoint::Network::STAGING end def call parser.parse!(@args) - return @logger.warn("specify contents to purge by bulk, CP codes or urls") unless @objects + return @logger.warn("specify contents to purge by bulk, CP codes or urls") if Array(@objects).empty? return @logger.warn("specify path to the secret file either by edgerc or by txt") unless @secret return @logger.warn("specified secret file does not exist") unless File.exist?(@secret) @wrapper_klass.setup(secret) wrapper = @wrapper_klass.new(endpoint: endpoint, headers: Array(@headers)) @logger.info wrapper.call(@objects).to_s