go_api_client 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/go_api_client.rb +10 -3
- data/lib/go_api_client/version.rb +1 -1
- metadata +6 -6
data/Gemfile.lock
CHANGED
data/lib/go_api_client.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
require 'nokogiri'
|
2
|
-
require
|
2
|
+
require 'open-uri'
|
3
|
+
require 'net/http'
|
3
4
|
|
4
|
-
require
|
5
|
-
require
|
5
|
+
require 'go_api_client/version'
|
6
|
+
require 'go_api_client/atom'
|
6
7
|
require 'go_api_client/pipeline.rb'
|
7
8
|
require 'go_api_client/stage.rb'
|
8
9
|
require 'go_api_client/job.rb'
|
@@ -17,4 +18,10 @@ module GoApiClient
|
|
17
18
|
end
|
18
19
|
pipelines.values
|
19
20
|
end
|
21
|
+
|
22
|
+
def self.schedule_pipeline(host)
|
23
|
+
uri = URI("http://#{host}:8153/go/api/pipelines/defaultPipeline/schedule")
|
24
|
+
Net::HTTP.post_form(uri, {})
|
25
|
+
end
|
20
26
|
end
|
27
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: go_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,11 +11,11 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-03-
|
14
|
+
date: 2012-03-13 00:00:00.000000000Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: webmock
|
18
|
-
requirement: &
|
18
|
+
requirement: &70114427939400 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: '0'
|
24
24
|
type: :development
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *70114427939400
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: nokogiri
|
29
|
-
requirement: &
|
29
|
+
requirement: &70114427938960 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ! '>='
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
version: '0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *70114427938960
|
38
38
|
description: This gem parses atom feed generated by the Go Continuous Integration
|
39
39
|
server and provides an OO representation of the pipelines and stages.
|
40
40
|
email:
|