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 +4 -4
- data/lib/MustardClient/executions.rb +8 -2
- data/lib/MustardClient/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1da40b753921ccef1666c9b94ab2ca8d9ac7865f
|
4
|
+
data.tar.gz: e573af5e9b8426b9da58424559644f11ed6c2c79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 +
|
88
|
+
command[:route] = @mustard_url + route
|
83
89
|
command[:headers] = {'User-Token' => @user_token}
|
84
90
|
|
85
91
|
execute(command)
|
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.
|
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-
|
11
|
+
date: 2016-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|