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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9cbbdc06373a992abab8c292614bf91a563df8c
4
- data.tar.gz: 054ba7f55cb4151cb43e7868087b3befab394b48
3
+ metadata.gz: 0f4d7c9dff916bb78d8a0d5faae7e7d93c3cd37e
4
+ data.tar.gz: 001a86af8cda1cd4bff9000b435850be227e2c73
5
5
  SHA512:
6
- metadata.gz: 7d7d0f61c79c549adc1aac5ddb45fc9a6d673917c78ae03d69d5f16f380464f009cea8471a8f5e4e3ad990e9705d7281c87eca1c58026bef46b68232b13f8455
7
- data.tar.gz: ea7fb48920315c981cd7c4c592c5275872f9d69280438793345d7c7487f13a74a3c47233eea07d9d6427195ce7c4e187218116fb93b3dcd08189707dcd3967e2
6
+ metadata.gz: c491151acd77ed80ec37a8de987aa341cc9f3d5ff89af18728c9db41e1181b8e8324d0128bc3a7b4073e7e3d541032bf0dc1f3eebcb867d8741b841e4c2198a0
7
+ data.tar.gz: c785a1234c5d2594b750a024161ab6f1284618451a8beafa679c5a42d46a261425088b564d3a18ccaeabbaa16b383bc24840d3d24f2eddb3bf4316e81860f6a6
@@ -1,3 +1,3 @@
1
1
  language: ruby
2
2
  rvm:
3
- - "2.2"
3
+ - "2.2.3"
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",
@@ -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
- Chef::ServerAPI.new(options[:server_url] || Config.options[:server_url])
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
@@ -1,5 +1,5 @@
1
1
  # simple gem version number tracking
2
2
  module Ogre
3
3
  # ogre version
4
- VERSION = '0.1.6'.freeze
4
+ VERSION = '0.1.7'.freeze
5
5
  end
@@ -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', '>= 1.21.0'
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.\nCompiling Cookbooks..."
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.\nCompiling Cookbooks..."
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.6
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-04-25 00:00:00.000000000 Z
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