13
14
15
16
17
18
19
|
# File 'lib/pact/message/cli.rb', line 13
def update(message)
require 'pact/message'
require 'pact/message/consumer/update_pact'
pact_specification_version = Pact::SpecificationVersion.new(options.pact_specification_version)
message = Pact::Message.from_hash(JSON.load(message), { pact_specification_version: pact_specification_version })
Pact::Message::Consumer::UpdatePact.call(message, options.pact_dir, options.consumer, options.provider, options.pact_specification_version)
end
|