mustard_client 0.1.14 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7982c4ce0a20604ed4cc1adfaefa081d0978d330
4
- data.tar.gz: fec25e65ed649876e23289c22deb6daacbe87fc4
3
+ metadata.gz: 1da40b753921ccef1666c9b94ab2ca8d9ac7865f
4
+ data.tar.gz: e573af5e9b8426b9da58424559644f11ed6c2c79
5
5
  SHA512:
6
- metadata.gz: da330a0331a11b7edeedab22e33ee87e3617e75c47f4882226c86a5f4a5f7564043140053d3e94a4f01b14c76f439f54d3f9b29561592307471aeb29eb2b38a7
7
- data.tar.gz: f6815a36b428a4905519edbd60e4d94f6b0dd42ac9720d8e8925e61aefadf3325acb299cc9dcd2bb348d4b76a7445baa7e079087296457b962d985b34cd5a7b6
6
+ metadata.gz: 9ffd9a097a12c8c802555ed8ead61af0b4b0d18b5b012c083d9fc4f4448caeda5d1e6ab4fce9b0d55b9cffa793c38c5b894c524b7da3fd806e26fa323a6c794a
7
+ data.tar.gz: 6d41e19aaff39a4592abe430ecd2e15f30d32d5ae3e08cfeddf1d90329e252af7dd8d481cdaaa2bec7ae84455fefd7941ad8c9348979a2cf0cfcf43c20e91d2d
@@ -75,11 +75,17 @@ module MustardClient
75
75
  end
76
76
 
77
77
 
78
- def close execution_id
78
+ def close execution_id: nil, execution_key: nil
79
+
80
+ if execution_key
81
+ route = "/executions/close?execution_key=#{execution_key}"
82
+ else
83
+ route = "/executions/close?execution_id=#{execution_id}"
84
+ end
79
85
 
80
86
  command = {}
81
87
  command[:method] = :post
82
- command[:route] = @mustard_url + "/executions/#{execution_id}"
88
+ command[:route] = @mustard_url + route
83
89
  command[:headers] = {'User-Token' => @user_token}
84
90
 
85
91
  execute(command)
@@ -1,3 +1,3 @@
1
1
  module MustardClient
2
- VERSION = "0.1.14"
2
+ VERSION = "0.1.15"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mustard_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Watson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-05 00:00:00.000000000 Z
11
+ date: 2016-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler