stackup 1.3.1 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +7 -0
- data/README.md +4 -2
- data/bin/stackup +3 -1
- data/lib/stackup/differ.rb +2 -2
- data/lib/stackup/service.rb +1 -1
- data/lib/stackup/source.rb +0 -1
- data/lib/stackup/stack.rb +1 -1
- data/lib/stackup/stack_watcher.rb +1 -1
- data/lib/stackup/version.rb +1 -1
- data/spec/stackup/stack_watcher_spec.rb +1 -1
- metadata +6 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4dafb5556c41fc05f6baa311023c67d244a9ce6
|
4
|
+
data.tar.gz: e3194ef95468ddec9d106e4090f19da42434da5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 113a2296b9409c4beae7f624ef0d08818963a3a52e77ee328a66ac83ede3e1a054c784ef6403b741526239bf982d708b9f5c14202240410d9aca01978596cf45
|
7
|
+
data.tar.gz: a82ae045726eafabcdff86eb3cfa7a381ea5e49188cd3ef50a4e53de599d14f329e3fd45f5dd93a63cbe4f3adbc9eab0b9f2c9a2d2e0236c6341ccd49d2e68e6
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# CHANGES
|
2
|
+
|
3
|
+
## 1.4.0 (2018-11-01)
|
4
|
+
|
5
|
+
* Add `--context-lines` option to `diff`.
|
6
|
+
* Fix #60: requiring all of "aws-sdk-resources" causes slow gem loading.
|
7
|
+
|
1
8
|
## 1.3.1 (2018-06-05)
|
2
9
|
|
3
10
|
* Dependency upgrades. Notably ruby 2.5 in the docker release, and aws-sdk v3
|
data/README.md
CHANGED
@@ -109,10 +109,12 @@ You may specify `-p` multiple times; `stackup` will read and merge all the files
|
|
109
109
|
-p defaults.json \
|
110
110
|
-p overrides.json
|
111
111
|
|
112
|
-
Or, you can specify parameters on the command-line,
|
112
|
+
Or, you can specify one or more override parameters on the command-line, using `-o` with `-p`:
|
113
113
|
|
114
114
|
$ stackup myapp-test up -t template.json \
|
115
|
-
-
|
115
|
+
-p defaults.json \
|
116
|
+
-o IndexDoc=index-override.html
|
117
|
+
-o ContentDoc=content-override.html
|
116
118
|
|
117
119
|
### YAML support
|
118
120
|
|
data/bin/stackup
CHANGED
@@ -347,6 +347,8 @@ Clamp do
|
|
347
347
|
|
348
348
|
option "--diff-format", "FORMAT", "'text', 'color', or 'html'", :default => "color"
|
349
349
|
|
350
|
+
option ["-C", "--context-lines"], "LINES", "number of lines of context to show", :default => 10_000
|
351
|
+
|
350
352
|
option ["-t", "--template"], "FILE", "template source",
|
351
353
|
:attribute_name => :template_source,
|
352
354
|
&Stackup::Source.method(:new)
|
@@ -373,7 +375,7 @@ Clamp do
|
|
373
375
|
planned["Tags"] = tag_source.data.sort.to_h
|
374
376
|
end
|
375
377
|
signal_usage_error "specify '--template' or '--parameters'" if planned.empty?
|
376
|
-
puts differ.diff(current, planned)
|
378
|
+
puts differ.diff(current, planned, context_lines)
|
377
379
|
end
|
378
380
|
|
379
381
|
private
|
data/lib/stackup/differ.rb
CHANGED
@@ -17,10 +17,10 @@ module Stackup
|
|
17
17
|
|
18
18
|
include Utils
|
19
19
|
|
20
|
-
def diff(existing_data, pending_data)
|
20
|
+
def diff(existing_data, pending_data, context_lines)
|
21
21
|
existing = format(normalize_data(existing_data)) + "\n"
|
22
22
|
pending = format(normalize_data(pending_data)) + "\n"
|
23
|
-
diff = Diffy::Diff.new(existing, pending).to_s(diff_style)
|
23
|
+
diff = Diffy::Diff.new(existing, pending, context: context_lines).to_s(diff_style)
|
24
24
|
diff unless diff =~ /\A\s*\Z/
|
25
25
|
end
|
26
26
|
|
data/lib/stackup/service.rb
CHANGED
data/lib/stackup/source.rb
CHANGED
data/lib/stackup/stack.rb
CHANGED
data/lib/stackup/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stackup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Williams
|
@@ -9,36 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-11-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name: aws-sdk-
|
15
|
+
name: aws-sdk-cloudformation
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '1.6'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: aws-sdk-resources
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
31
|
-
requirements:
|
32
|
-
- - "~>"
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: '3.0'
|
35
|
-
type: :runtime
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - "~>"
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '3.0'
|
27
|
+
version: '1.6'
|
42
28
|
- !ruby/object:Gem::Dependency
|
43
29
|
name: clamp
|
44
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
134
|
version: '0'
|
149
135
|
requirements: []
|
150
136
|
rubyforge_project:
|
151
|
-
rubygems_version: 2.6.
|
137
|
+
rubygems_version: 2.6.13
|
152
138
|
signing_key:
|
153
139
|
specification_version: 4
|
154
140
|
summary: Manage CloudFormation stacks
|