scooter 4.1.0 → 4.2.0
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 +8 -8
- data/.env +1 -1
- data/Gemfile +1 -1
- data/lib/scooter/httpdispatchers/consoledispatcher.rb +4 -0
- data/lib/scooter/httpdispatchers/orchestrator/v1/v1.rb +15 -0
- data/lib/scooter/version.rb +1 -1
- data/scooter.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTc5OGRmYWM4YjQyZTEzYzBhMTNkOGE0MGYxMGE2OGE4YzdmZWVhZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmE2OWJiOWM2ODkxOGM3ZWEwOTQ2NmJlNDQwNTBhNzc1ZDRhZDlmYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjBkYjBiYzk4ZWM1NTdhYTIyOTJkOWNlMDY2YWIyMTQ3NTgzZGMwMTdiMjIx
|
10
|
+
ZDIxM2M3ODRkODAxZTg4YmZiMmJmNzU3OGNjNTJhYTIzMWMyMDYyNDQyOGM0
|
11
|
+
ZTVjNTkyNzlkNjE1ZjExMzIzYmIwOTUzMTE3ZTFiYmQ4ZTI0Nzg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
M2M1NmI5Y2RlNzE5YmJmY2I1MjdhZGIzODIzMGFiY2M0OGE0OTMzNjM2MmQ3
|
14
|
+
MDVmYzRhYTNhMjkwOGUwZmE2MmMyZThhZjRhNTM5MDYxYjI0NmI5MDZmOTk3
|
15
|
+
OTA2NzA4M2NmNmM5NzAxNDU0ZmIxY2E4NTU3OWZiZDRjOWM3ZTY=
|
data/.env
CHANGED
data/Gemfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
source 'https://rubygems.
|
1
|
+
source ENV['GEM_SOURCE'] || 'https://rubygems.delivery.puppetlabs.net'
|
2
2
|
#this will probably not be available on rubygems, at least initially
|
3
3
|
#will probably be only available at https://rubygems.delivery.puppetlabs.net
|
4
4
|
#TODO: Change this line when it is actually available internally
|
@@ -104,6 +104,10 @@ module Scooter
|
|
104
104
|
set_url_prefix
|
105
105
|
end
|
106
106
|
|
107
|
+
def log_out
|
108
|
+
response = @connection.get "/auth/logout"
|
109
|
+
end
|
110
|
+
|
107
111
|
def reset_local_user_password(token, new_password)
|
108
112
|
@connection.post "https://#{host}/auth/reset" do |request|
|
109
113
|
request.headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8'
|
@@ -89,6 +89,21 @@ module Scooter
|
|
89
89
|
def get_status
|
90
90
|
@connection.get("#{@version}/status")
|
91
91
|
end
|
92
|
+
|
93
|
+
#task endpoints
|
94
|
+
def get_task(mod, task)
|
95
|
+
@connection.get("#{@version}/tasks/#{mod}/#{task}")
|
96
|
+
end
|
97
|
+
|
98
|
+
def get_tasks
|
99
|
+
@connection.get("#{@version}/tasks")
|
100
|
+
end
|
101
|
+
|
102
|
+
def post_task(payload)
|
103
|
+
@connection.post("#{@version}/command/task") do |req|
|
104
|
+
req.body = payload
|
105
|
+
end
|
106
|
+
end
|
92
107
|
end
|
93
108
|
end
|
94
109
|
end
|
data/lib/scooter/version.rb
CHANGED
data/scooter.gemspec
CHANGED
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_runtime_dependency 'json', '~> 1.8'
|
34
34
|
spec.add_runtime_dependency 'test-unit'
|
35
35
|
spec.add_runtime_dependency 'net-ldap', '~> 0.6', '>= 0.6.1', '<= 0.12.1'
|
36
|
-
spec.add_runtime_dependency 'beaker', '
|
36
|
+
spec.add_runtime_dependency 'beaker', '~> 3.0'
|
37
37
|
spec.add_runtime_dependency 'faraday', '~> 0.9', '>= 0.9.1'
|
38
38
|
spec.add_runtime_dependency 'faraday_middleware', '~> 0.9'
|
39
39
|
spec.add_runtime_dependency 'faraday-cookie_jar', '~> 0.0', '>= 0.0.6'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scooter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppetlabs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -180,16 +180,16 @@ dependencies:
|
|
180
180
|
name: beaker
|
181
181
|
requirement: !ruby/object:Gem::Requirement
|
182
182
|
requirements:
|
183
|
-
- -
|
183
|
+
- - ~>
|
184
184
|
- !ruby/object:Gem::Version
|
185
|
-
version:
|
185
|
+
version: '3.0'
|
186
186
|
type: :runtime
|
187
187
|
prerelease: false
|
188
188
|
version_requirements: !ruby/object:Gem::Requirement
|
189
189
|
requirements:
|
190
|
-
- -
|
190
|
+
- - ~>
|
191
191
|
- !ruby/object:Gem::Version
|
192
|
-
version:
|
192
|
+
version: '3.0'
|
193
193
|
- !ruby/object:Gem::Dependency
|
194
194
|
name: faraday
|
195
195
|
requirement: !ruby/object:Gem::Requirement
|
@@ -315,7 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
315
315
|
version: '0'
|
316
316
|
requirements: []
|
317
317
|
rubyforge_project:
|
318
|
-
rubygems_version: 2.4.
|
318
|
+
rubygems_version: 2.4.8
|
319
319
|
signing_key:
|
320
320
|
specification_version: 4
|
321
321
|
summary: Puppetlabs testing tool
|