lib/akamai_ccu/cli.rb in akamai_ccu-1.3.4 vs lib/akamai_ccu/cli.rb in akamai_ccu-1.3.5

- old
+ new

@@ -20,10 +20,11 @@ def call parser.parse!(@args) return @logger.warn("specify contents to purge by bulk, CP codes or urls") unless @objects 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 = @wrapper_klass.new(secret: secret, endpoint: endpoint, headers: Array(@headers)) + @wrapper_klass.setup(secret) + wrapper = @wrapper_klass.new(endpoint: endpoint, headers: Array(@headers)) @logger.info wrapper.call(@objects).to_s end private def secret return @secret_klass.by_txt(@secret) if File.extname(@secret) == ".txt"