opsmgr 0.35.7 → 0.35.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6223cb235345fe7cef30b2bee2e7d8a20963f1ee
4
- data.tar.gz: ce6b6bf65824c147aeb0b27574dbbcffe6bb2eaf
3
+ metadata.gz: 967d64e92cea2312b878101ea68f69ac79b7d66f
4
+ data.tar.gz: 5230e3b227e555f8119cff8ce8caa89b5f4a5606
5
5
  SHA512:
6
- metadata.gz: 3d990466ab0e9a26aaa3879f0883b44c961594597e2e60de4ea7a621b6f5e9edb8b54a9d31ae8903f8a6e093905f5b7bd2e104aa2c47c1230b30f6cc266e69fc
7
- data.tar.gz: c5b7fcb29cfc520004653b30d925ba662fba96830c7e198089654e6d415202c5aa463edac901174a45438044ab0c39383f0207d55f5e767063615a4d0b0a88b0
6
+ metadata.gz: 1fb8b2797e7af21a5b6f2da2d819dbfd19f84b9e2eb776f755cd6c38dabb6abccdc3de7d9eb1fadd88cb187ad54c7fa8d018a1684966ed48fe06cb64da3801fa
7
+ data.tar.gz: 4220ba386574cf1b0fa73695e9fc5358396efa6d10753772ee40ab35487509938f855c782528ef13947e978f3c1fb6db613ae8155b78229aa49e5294b503feeb
@@ -156,7 +156,7 @@ namespace :opsmgr do
156
156
  end
157
157
  File.open(args.key_file_path, 'w+') do |f|
158
158
  f << private_key
159
- f.chmod(0600)
159
+ f.chmod(0o600)
160
160
  end
161
161
  end
162
162
 
@@ -1,5 +1,5 @@
1
1
  module Opsmgr
2
- VERSION = '0.35.7'.freeze
2
+ VERSION = '0.35.8'.freeze
3
3
  end
4
4
  # Copyright (c) 2014-2015 Pivotal Software, Inc.
5
5
  # All rights reserved.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opsmgr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.7
4
+ version: 0.35.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Release Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-29 00:00:00.000000000 Z
11
+ date: 2016-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 2.10.9
117
+ version: 2.22.1
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 2.10.9
124
+ version: 2.22.1
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: mustache
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -345,9 +345,6 @@ files:
345
345
  - lib/opsmgr/tasks/info.rake
346
346
  - lib/opsmgr/tasks/opsmgr.rake
347
347
  - lib/opsmgr/tasks/product.rake
348
- - lib/opsmgr/teapot.rb
349
- - lib/opsmgr/teapot/app.rb
350
- - lib/opsmgr/teapot/spec_helper.rb
351
348
  - lib/opsmgr/ui_helpers/add_first_user_spec.rb
352
349
  - lib/opsmgr/ui_helpers/config_helper.rb
353
350
  - lib/opsmgr/ui_helpers/delete_installation_spec.rb
@@ -1,51 +0,0 @@
1
- require 'socket'
2
- require 'timeout'
3
-
4
- require 'opsmgr/teapot/app'
5
-
6
- module Opsmgr
7
- module Teapot
8
- class << self
9
- attr_accessor :configured_components
10
-
11
- def start(components)
12
- @configured_components = components
13
- @teapot_tempest_thread = Thread.new do
14
- silence(:stderr) do # Teapot's Sinatra is very chatty on stderr.
15
- Opsmgr::Teapot::App.run!
16
- end
17
- end
18
-
19
- fail 'Teapot never started!' unless listening?
20
- end
21
-
22
- def stop
23
- @teapot_tempest_thread.kill
24
- end
25
-
26
- private
27
-
28
- def listening?
29
- # inspired by http://stackoverflow.com/a/9017896
30
- Timeout.timeout(5) do
31
- begin
32
- TCPSocket.new('localhost', App.port).close
33
- true
34
- rescue Errno::ECONNREFUSED, Errno::EHOSTUNREACH
35
- retry
36
- end
37
- end
38
- rescue Timeout::Error
39
- false
40
- end
41
- end
42
- end
43
- end
44
- # Copyright (c) 2014-2015 Pivotal Software, Inc.
45
- # All rights reserved.
46
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
47
- # INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
48
- # PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
49
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
50
- # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
51
- # USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,50 +0,0 @@
1
- require 'sinatra/base'
2
- require 'json'
3
-
4
- module Opsmgr
5
- module Teapot
6
- class App < Sinatra::Base
7
- set :port, 8741
8
- enable :sessions
9
- set :server, 'webrick'
10
-
11
- get '/api/api_version' do
12
- content_type :json
13
- case @@version
14
- when '1.4'
15
- api_version = '2.0'
16
- end
17
- { 'version' => api_version }.to_json
18
- end
19
-
20
- get '/teapot/reset' do
21
- @@installs = nil
22
- @@components = nil
23
- @@products = nil
24
- @@logged_in_users = nil
25
- @@everyone_logged_in = false
26
- @@enable_number_of_cores_error = nil
27
- end
28
-
29
- post '/teapot/version' do
30
- Teapot.configured_components.components_for(params['version']).each do |component|
31
- components << component
32
- end
33
- @@version = params['version']
34
- { version: params['version'] }.to_json
35
- end
36
-
37
- def components
38
- @@components ||= []
39
- end
40
- end
41
- end
42
- end
43
- # Copyright (c) 2014-2015 Pivotal Software, Inc.
44
- # All rights reserved.
45
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
46
- # INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
47
- # PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
48
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
49
- # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
50
- # USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,33 +0,0 @@
1
- require 'net/http'
2
-
3
- module Opsmgr
4
- module Teapot
5
- module SpecHelper
6
- def set_teapot_version(version)
7
- post('/teapot/version', version: version)
8
- end
9
-
10
- def post(path, params = {})
11
- req = Net::HTTP::Post.new(path)
12
- req.set_form_data(params)
13
- response = teapot_client.request(req)
14
-
15
- fail "Teapot gave HTTP response #{response.code} POST of #{path} with #{params.inspect}" if response.is_a?(Net::HTTPInternalServerError)
16
-
17
- response
18
- end
19
-
20
- def teapot_client
21
- Net::HTTP.new('localhost', App.port)
22
- end
23
- end
24
- end
25
- end
26
- # Copyright (c) 2014-2015 Pivotal Software, Inc.
27
- # All rights reserved.
28
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
29
- # INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
30
- # PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
31
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
32
- # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
33
- # USE OR OTHER DEALINGS IN THE SOFTWARE.