Class: Pact::Message::CLI
- Inherits:
-
Thor
- Object
- Thor
- Pact::Message::CLI
- Defined in:
- lib/pact/message/cli.rb
Instance Method Summary collapse
Instance Method Details
#reify(json) ⇒ Object
22 23 24 25 |
# File 'lib/pact/message/cli.rb', line 22 def reify(json) require 'pact/support' puts Pact::Reification.from_term(JSON.load(json)).to_json end |
#update(message) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/pact/message/cli.rb', line 13 def update() require 'pact/message' require 'pact/message/consumer/update_pact' pact_specification_version = Pact::SpecificationVersion.new(.pact_specification_version) = Pact::Message.from_hash(JSON.load(), { pact_specification_version: pact_specification_version }) Pact::Message::Consumer::UpdatePact.call(, .pact_dir, .consumer, .provider, .pact_specification_version) end |
#version ⇒ Object
28 29 30 31 |
# File 'lib/pact/message/cli.rb', line 28 def version require 'pact/message/version.rb' puts Pact::Message::VERSION end |