ogre 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/README.md +1 -0
- data/lib/ogre/base.rb +2 -1
- data/lib/ogre/version.rb +1 -1
- data/ogre.gemspec +1 -1
- data/spec/ogre/org-create_spec.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f4d7c9dff916bb78d8a0d5faae7e7d93c3cd37e
|
4
|
+
data.tar.gz: 001a86af8cda1cd4bff9000b435850be227e2c73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c491151acd77ed80ec37a8de987aa341cc9f3d5ff89af18728c9db41e1181b8e8324d0128bc3a7b4073e7e3d541032bf0dc1f3eebcb867d8741b841e4c2198a0
|
7
|
+
data.tar.gz: c785a1234c5d2594b750a024161ab6f1284618451a8beafa679c5a42d46a261425088b564d3a18ccaeabbaa16b383bc24840d3d24f2eddb3bf4316e81860f6a6
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -27,6 +27,7 @@ All of the parameters here are optional and can be passed in and/or overriden at
|
|
27
27
|
"run_as":"chef_username",
|
28
28
|
"key_path":"/path/to/key.pem",
|
29
29
|
"server_url":"https://chef.url",
|
30
|
+
"ssl_verify_mode":"true (default) / false",
|
30
31
|
"vco_url":"https://vco.url:8281/",
|
31
32
|
"vco_user": "domain\\user",
|
32
33
|
"vco_password":"password",
|
data/lib/ogre/base.rb
CHANGED
@@ -15,7 +15,8 @@ module Ogre
|
|
15
15
|
def chef_rest
|
16
16
|
Chef::Config.node_name = options[:run_as] || Config.options[:run_as]
|
17
17
|
Chef::Config.client_key = options[:key_path] || Config.options[:key_path]
|
18
|
-
|
18
|
+
if Config.options[:ssl_verify_mode] == 'false' then Chef::Config.ssl_verify_mode = :verify_none end
|
19
|
+
Chef::ServerAPI.new(options[:server_url] || Config.options[:server_url], api_version: '0')
|
19
20
|
end
|
20
21
|
end
|
21
22
|
end
|
data/lib/ogre/version.rb
CHANGED
data/ogre.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
# growl functionality in Guardfile depends on growl-notify
|
30
30
|
spec.add_development_dependency 'growl', '>= 1.0'
|
31
31
|
spec.add_development_dependency 'yard', '>= 0.8'
|
32
|
-
spec.add_development_dependency 'webmock', '
|
32
|
+
spec.add_development_dependency 'webmock', '~> 1.21.0'
|
33
33
|
spec.add_development_dependency 'vcr', '>= 2.9.3'
|
34
34
|
|
35
35
|
spec.add_dependency 'chef-dk'
|
@@ -26,7 +26,7 @@ describe Ogre::OrgCreate do
|
|
26
26
|
|
27
27
|
it 'should create new org and save chef policy repository' do
|
28
28
|
args = %w(my-org-name my-org-desc -p --repo-path tmp) + DEFAULTS
|
29
|
-
response = "'my-org-name' org has been created.\
|
29
|
+
response = "'my-org-name' org has been created.\nInstalling Cookbook Gems:"
|
30
30
|
VCR.use_cassette('org-create') do
|
31
31
|
expect { Ogre::OrgCreate.start(args) }.to output(/#{response}/).to_stdout
|
32
32
|
end
|
@@ -34,7 +34,7 @@ describe Ogre::OrgCreate do
|
|
34
34
|
# rubocop:disable LineLength
|
35
35
|
it 'should create new org and save chef policy repository with parameters' do
|
36
36
|
args = %w(my-org-name my-org-desc -p --repo-path tmp -I mit -m youremail@example.com -C Top-Chefs -r https://github.com/activenetwork-automation/code_generator) + DEFAULTS
|
37
|
-
response = "'my-org-name' org has been created.\
|
37
|
+
response = "'my-org-name' org has been created.\nInstalling Cookbook Gems:"
|
38
38
|
VCR.use_cassette('org-create') do
|
39
39
|
expect { Ogre::OrgCreate.start(args) }.to output(/#{response}/).to_stdout
|
40
40
|
expect(File.read(KNIFE_PATH)).to match(/cookbook_email "youremail@example.com"/)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ogre
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "'Joe"
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-05-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -141,14 +141,14 @@ dependencies:
|
|
141
141
|
name: webmock
|
142
142
|
requirement: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
|
-
- - "
|
144
|
+
- - "~>"
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: 1.21.0
|
147
147
|
type: :development
|
148
148
|
prerelease: false
|
149
149
|
version_requirements: !ruby/object:Gem::Requirement
|
150
150
|
requirements:
|
151
|
-
- - "
|
151
|
+
- - "~>"
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: 1.21.0
|
154
154
|
- !ruby/object:Gem::Dependency
|