buildkit 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/buildkit/client/builds.rb +12 -0
- data/lib/buildkit/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a85af6bb40a281c219a2837700833cbb6f32d99
|
4
|
+
data.tar.gz: dc2cd54f37470feb90fda6c37a3ae3d8855b43bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4df322a711ba16b8a5abe274195af31a2caff1891b57593fcb6f077a584c35d7ed28e618dbba2638672c860309990664b30f072c4e309b6d0a20053e49b6c1f1
|
7
|
+
data.tar.gz: 27c8787d3ce593c0cc038ec527d73ed7ff0dba2810b1d674f78d80ec8cd741a8f5e042f28a85eba6b97e8b4f07339851627709c7a1ff83d0a654bdbd8e1a6846
|
@@ -81,6 +81,18 @@ module Buildkit
|
|
81
81
|
def create_build(org, pipeline, options = {})
|
82
82
|
post("/v2/organizations/#{org}/pipelines/#{pipeline}/builds", options)
|
83
83
|
end
|
84
|
+
|
85
|
+
# Cancel a build
|
86
|
+
#
|
87
|
+
# @param org [String] Organization slug.
|
88
|
+
# @param pipeline [String] pipeline slug.
|
89
|
+
# @param number [Integer] Build number.
|
90
|
+
# @see https://buildkite.com/docs/rest-api/builds#cancel-a-build
|
91
|
+
# @example
|
92
|
+
# Buildkit.cancel_build('my-great-org', 'great-pipeline', 42)
|
93
|
+
def cancel_build(org, pipeline, number, options = {})
|
94
|
+
put("/v2/organizations/#{org}/pipelines/#{pipeline}/builds/#{number}/cancel", options)
|
95
|
+
end
|
84
96
|
end
|
85
97
|
end
|
86
98
|
end
|
data/lib/buildkit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean Boussier
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sawyer
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
90
|
rubyforge_project:
|
91
|
-
rubygems_version: 2.5.
|
91
|
+
rubygems_version: 2.5.2
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: Ruby toolkit for working with the Buildkite API
|