sfn 3.1.2 → 3.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/LICENSE +1 -1
- data/bin/generate_sfn_docs +3 -0
- data/docs/command-config.md +83 -0
- data/lib/sfn/command_module/stack.rb +6 -5
- data/lib/sfn/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6547ff820746c65b4c40508197419dcae12faca99daebcfc94deead2aa26f840
|
4
|
+
data.tar.gz: 8c6b5e8fc5376a833a4795f03975c6e4f3413b769c0eefc30483df204925929d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbcb90988b563a83958fb68fa000e9d400143733b80e4e505974539f397e8115c3b670f3d617896df6b79c13a32f89a31e821555bc72a65413b786d821eaa423
|
7
|
+
data.tar.gz: 5449abde150d5fc85c419671f12792ee6e1640cac4340df67f01dd60c2da765011024e51e94b1786171ecae05f1f6cd37c3e93f3d22edabc0a4f3a3fb0280196
|
data/CHANGELOG.md
CHANGED
data/LICENSE
CHANGED
@@ -186,7 +186,7 @@ APPENDIX: How to apply the Apache License to your work.
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
187
187
|
identification within third-party archives.
|
188
188
|
|
189
|
-
Copyright
|
189
|
+
Copyright 2019 Chris Roberts
|
190
190
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
192
192
|
you may not use this file except in compliance with the License.
|
data/bin/generate_sfn_docs
CHANGED
data/docs/command-config.md
CHANGED
@@ -36,6 +36,8 @@ anchors:
|
|
36
36
|
url: "#promote-command"
|
37
37
|
- title: "Realize Command"
|
38
38
|
url: "#realize-command"
|
39
|
+
- title: "Trace Command"
|
40
|
+
url: "#trace-command"
|
39
41
|
- title: "Update Command"
|
40
42
|
url: "#update-command"
|
41
43
|
- title: "Validate Command"
|
@@ -1523,6 +1525,87 @@ $ sfn realize
|
|
1523
1525
|
| | Valid | `TrueClass`, `FalseClass` |
|
1524
1526
|
| | Default | |
|
1525
1527
|
|
1528
|
+
## Trace Command
|
1529
|
+
|
1530
|
+
~~~
|
1531
|
+
$ sfn trace
|
1532
|
+
~~~
|
1533
|
+
|
1534
|
+
| Option | Attribute | Value
|
1535
|
+
|--------|-----------|------
|
1536
|
+
| `--apply-nesting` | Description | Apply stack nesting |
|
1537
|
+
| | Valid | `String`, `Symbol` |
|
1538
|
+
| | Default | "deep"|
|
1539
|
+
| `--base-directory` | Description | Path to root of of templates directory |
|
1540
|
+
| | Valid | `String` |
|
1541
|
+
| | Default | |
|
1542
|
+
| `--colors` | Description | Enable colorized output |
|
1543
|
+
| | Valid | `TrueClass`, `FalseClass` |
|
1544
|
+
| | Default | true|
|
1545
|
+
| `--compile-parameters` | Description | Pass template compile time parameters directly |
|
1546
|
+
| | Valid | `Bogo::Smash` |
|
1547
|
+
| | Default | |
|
1548
|
+
| `--config` | Description | Configuration file path |
|
1549
|
+
| | Valid | `String` |
|
1550
|
+
| | Default | |
|
1551
|
+
| `--credentials` | Description | Provider credentials (Key:Value[,Key:Value,...]) |
|
1552
|
+
| | Valid | `Bogo::Smash` |
|
1553
|
+
| | Default | |
|
1554
|
+
| `--debug` | Description | Enable debug output |
|
1555
|
+
| | Valid | `TrueClass`, `FalseClass` |
|
1556
|
+
| | Default | |
|
1557
|
+
| `--defaults` | Description | Automatically accept default values |
|
1558
|
+
| | Valid | `TrueClass`, `FalseClass` |
|
1559
|
+
| | Default | |
|
1560
|
+
| `--file` | Description | Path to template file |
|
1561
|
+
| | Valid | `String` |
|
1562
|
+
| | Default | |
|
1563
|
+
| `--file-path-prompt` | Description | Enable interactive prompt for template path discovery |
|
1564
|
+
| | Valid | `TrueClass`, `FalseClass` |
|
1565
|
+
| | Default | true|
|
1566
|
+
| `--ignore-parameters` | Description | Parameters to ignore during modifications |
|
1567
|
+
| | Valid | `String` |
|
1568
|
+
| | Default | |
|
1569
|
+
| `--interactive-parameters` | Description | Prompt for template parameters |
|
1570
|
+
| | Valid | `TrueClass`, `FalseClass` |
|
1571
|
+
| | Default | true|
|
1572
|
+
| `--log` | Description | Enable logging with given level |
|
1573
|
+
| | Valid | `String` |
|
1574
|
+
| | Default | |
|
1575
|
+
| `--nesting-bucket` | Description | Bucket to use for storing nested stack templates |
|
1576
|
+
| | Valid | `String` |
|
1577
|
+
| | Default | |
|
1578
|
+
| `--nesting-prefix` | Description | File name prefix for storing template in bucket |
|
1579
|
+
| | Valid | `String` |
|
1580
|
+
| | Default | |
|
1581
|
+
| `--no-base-directory` | Description | Unset any value used for the template root directory path |
|
1582
|
+
| | Valid | `TrueClass`, `FalseClass` |
|
1583
|
+
| | Default | |
|
1584
|
+
| `--poll` | Description | Poll stack events on modification actions |
|
1585
|
+
| | Valid | `TrueClass`, `FalseClass` |
|
1586
|
+
| | Default | true|
|
1587
|
+
| `--print-only` | Description | Print the resulting stack template |
|
1588
|
+
| | Valid | `TrueClass`, `FalseClass` |
|
1589
|
+
| | Default | |
|
1590
|
+
| `--processing` | Description | Call the unicorns and explode the glitter bombs |
|
1591
|
+
| | Valid | `TrueClass`, `FalseClass` |
|
1592
|
+
| | Default | true|
|
1593
|
+
| `--sparkle-pack` | Description | Load SparklePack gem |
|
1594
|
+
| | Valid | `String` |
|
1595
|
+
| | Default | |
|
1596
|
+
| `--translate` | Description | Translate generated template to given provider |
|
1597
|
+
| | Valid | `String` |
|
1598
|
+
| | Default | |
|
1599
|
+
| `--translate-chunk` | Description | Chunk length for serialization |
|
1600
|
+
| | Valid | `Integer` |
|
1601
|
+
| | Default | |
|
1602
|
+
| `--upload-root-template` | Description | Upload root template to storage bucket |
|
1603
|
+
| | Valid | `TrueClass`, `FalseClass` |
|
1604
|
+
| | Default | |
|
1605
|
+
| `--yes` | Description | Automatically accept any requests for confirmation |
|
1606
|
+
| | Valid | `TrueClass`, `FalseClass` |
|
1607
|
+
| | Default | |
|
1608
|
+
|
1526
1609
|
## Update Command
|
1527
1610
|
|
1528
1611
|
~~~
|
@@ -72,11 +72,12 @@ module Sfn
|
|
72
72
|
provider_stack.api.data[:location] == key_parts[0] &&
|
73
73
|
provider_stack.name == key_parts[1]
|
74
74
|
when 2
|
75
|
-
provider_stack.name == key_parts[
|
75
|
+
provider_stack.name == key_parts[0]
|
76
76
|
when 1
|
77
77
|
true
|
78
78
|
else
|
79
|
-
raise ArgumentError
|
79
|
+
raise ArgumentError,
|
80
|
+
"Invalid name format for apply stack mapping (`#{a_key}`)"
|
80
81
|
end
|
81
82
|
end
|
82
83
|
to_remove = valid_keys.find_all do |key|
|
@@ -341,10 +342,10 @@ module Sfn
|
|
341
342
|
if current_value && current_value.to_s != stack_value.to_s
|
342
343
|
if config[:parameter_validation] == "default"
|
343
344
|
ui.warn "Nested stack has been altered directly! " \
|
344
|
-
|
345
|
+
"This update may cause unexpected modifications!"
|
345
346
|
ui.warn "Stack name: #{c_stack.name}. Parameter: #{p_key}. " \
|
346
|
-
|
347
|
-
|
347
|
+
"Current value: #{stack_value}. Expected value: #{current_value} " \
|
348
|
+
"(via: #{c_value.inspect})"
|
348
349
|
if config[:interactive_parameters]
|
349
350
|
answer = ui.ask_question("Use current value or expected value for #{p_key} " \
|
350
351
|
"[current/expected]?", :valid => ["current", "expected"])
|
data/lib/sfn/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sfn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bogo-cli
|
@@ -493,7 +493,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
493
493
|
- !ruby/object:Gem::Version
|
494
494
|
version: '0'
|
495
495
|
requirements: []
|
496
|
-
rubygems_version: 3.0.
|
496
|
+
rubygems_version: 3.0.3
|
497
497
|
signing_key:
|
498
498
|
specification_version: 4
|
499
499
|
summary: SparkleFormation CLI
|