opsworks-cli 0.4.0 → 0.4.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bfd9c693a24d5a7f5de807fbc15794a8e4f58c51
|
|
4
|
+
data.tar.gz: 9772af5d01fb661eea88f783ef3659ed6b2fe169
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 95546553bfc0e27b9a3122fc6abe6fde2f1e4118bfbcd4b3144cbbcc7790350b91834ca7c662166ca9a2a81900ec4f2dbc3e7a846fc6ef0f094e872909c5448c
|
|
7
|
+
data.tar.gz: aed808326ac06d230b85e2cedcc45bbfaf43637579cceac668d634e81c7fb02b7db44f7564d3a1be5f106698ac16c7952882bf2931ad9a91d4ba28edea21c2c9
|
data/lib/opsworks/cli/agent.rb
CHANGED
|
@@ -3,6 +3,7 @@ require 'aws'
|
|
|
3
3
|
|
|
4
4
|
require_relative 'helpers/credentials'
|
|
5
5
|
require_relative 'helpers/options'
|
|
6
|
+
require_relative 'helpers/typecasts'
|
|
6
7
|
|
|
7
8
|
require_relative 'subcommands/chef'
|
|
8
9
|
require_relative 'subcommands/recipes'
|
|
@@ -17,6 +18,7 @@ module OpsWorks
|
|
|
17
18
|
|
|
18
19
|
include Helpers::Credentials
|
|
19
20
|
include Helpers::Options
|
|
21
|
+
include Helpers::Typecasts
|
|
20
22
|
|
|
21
23
|
include Subcommands::Chef
|
|
22
24
|
include Subcommands::Recipes
|
data/lib/opsworks/cli/version.rb
CHANGED
|
@@ -69,6 +69,16 @@ describe OpsWorks::CLI::Agent do
|
|
|
69
69
|
expect(stack.custom_json['env']['FOO']).to eq 'baz'
|
|
70
70
|
expect(stack.custom_json['other']).to eq 'something'
|
|
71
71
|
end
|
|
72
|
+
|
|
73
|
+
it 'should typecast Boolean values' do
|
|
74
|
+
stack.custom_json = {}
|
|
75
|
+
expect(client).to receive(:update_stack) do |hash|
|
|
76
|
+
json = JSON.parse(hash[:custom_json])
|
|
77
|
+
expect(json['env']['FOO']).to eq true
|
|
78
|
+
end
|
|
79
|
+
subject.send('config:set', json_path, 'true')
|
|
80
|
+
expect(stack.custom_json['env']['FOO']).to eq true
|
|
81
|
+
end
|
|
72
82
|
end
|
|
73
83
|
|
|
74
84
|
describe 'config:unset' do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: opsworks-cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Frank Macreery
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-04-
|
|
11
|
+
date: 2015-04-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|
|
@@ -185,6 +185,7 @@ files:
|
|
|
185
185
|
- lib/opsworks/cli/agent.rb
|
|
186
186
|
- lib/opsworks/cli/helpers/credentials.rb
|
|
187
187
|
- lib/opsworks/cli/helpers/options.rb
|
|
188
|
+
- lib/opsworks/cli/helpers/typecasts.rb
|
|
188
189
|
- lib/opsworks/cli/subcommands/apps.rb
|
|
189
190
|
- lib/opsworks/cli/subcommands/chef.rb
|
|
190
191
|
- lib/opsworks/cli/subcommands/config.rb
|