jenkins-build 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ae30a4dd90c885908bcb22da2a2ab46ac401733
4
- data.tar.gz: 49d83dc73f72f4226069340db1433e9dd51d28e7
3
+ metadata.gz: 730faf862114af0c23a1d01d874413eafc182d41
4
+ data.tar.gz: c1e1a6ad206f10b633ef145586a41f28293f0fb3
5
5
  SHA512:
6
- metadata.gz: 9e1a46947d32df1bf5d33243f0b2f08f89ba5d29b9f2a7dfedf1485b6edef03ec8e1cffec21027596b4ddf165e9dfbef9e20eb530cabbcc76032fadebb9023dc
7
- data.tar.gz: 2b826e4d3477957573b7cb39ca39fbfb0f350e7019d779aa0df309f75da95b62e4bbbe3514725f8a5a35a1a44c8389d776764a06cbccf9f2c20edb658842489f
6
+ metadata.gz: 3168364d029f0ae5248e29cbf73001ca58cafc588f6bcdf00a31ca1ab31bed7e402eb48db6799c4e6925f495f76827a6e6c875712189d7648df3b62671914c89
7
+ data.tar.gz: 38d0d8f0439c304c9eac1fd11dccf80d8ed2dcb83325f2f492fcb8dca5c4b99ff02e00b2bc7b771e5d4b53242eee7d928a0e5e47093ba61de074ef497d461a6f
@@ -18,8 +18,7 @@ module Jenkins
18
18
  configuration.write
19
19
  end
20
20
 
21
- option :branch, desc: 'Git branch to build', default: current_branch
22
-
21
+ option :branch, desc: 'Git branch', default: current_branch
23
22
  desc 'trigger', 'triggers build of a branch'
24
23
  def trigger
25
24
  unless configuration.exists?
@@ -31,6 +30,16 @@ module Jenkins
31
30
  puts "Triggered build of #{configuration.project} with branch #{branch}."
32
31
  end
33
32
 
33
+ option :branch, desc: 'Git branch', default: current_branch
34
+ desc 'status', 'prints status of a branch'
35
+ def status
36
+ unless system('which', 'hub')
37
+ warn 'install `hub` tool to get ci status (https://github.com/github/hub)'
38
+ exit 1
39
+ end
40
+ exec('hub', 'ci-status', branch, '-v')
41
+ end
42
+
34
43
  private
35
44
 
36
45
  def branch
@@ -1,5 +1,5 @@
1
1
  module Jenkins
2
2
  module Build
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jenkins-build
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Cichra