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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a0d3ba5a54ddc491d9a7dc4acc98baf4cd3e9533fe9e6dfb74e4154603566a2
4
- data.tar.gz: bb96f40718dac5aaf5ea8e3b3de04afac2bcf893a5f3108c44d6023435d86234
3
+ metadata.gz: 6547ff820746c65b4c40508197419dcae12faca99daebcfc94deead2aa26f840
4
+ data.tar.gz: 8c6b5e8fc5376a833a4795f03975c6e4f3413b769c0eefc30483df204925929d
5
5
  SHA512:
6
- metadata.gz: 01657ee293977a4f07e745d53b426ebc723f056892b4df6cd6f850e2361435521df969bd6cf081cbb9f0ca45ca5fe6764f5763369e59aab3c611794a34dea2ff
7
- data.tar.gz: 90648c378bae5ac67ee578e41dcba9fa6ac1cd529fa34362dc8a758ce33336df74611adf27b1ec2bf16dc0a86f624f03ae4159a11952a4888f5b5fac1ded1224
6
+ metadata.gz: dbcb90988b563a83958fb68fa000e9d400143733b80e4e505974539f397e8115c3b670f3d617896df6b79c13a32f89a31e821555bc72a65413b786d821eaa423
7
+ data.tar.gz: 5449abde150d5fc85c419671f12792ee6e1640cac4340df67f01dd60c2da765011024e51e94b1786171ecae05f1f6cd37c3e93f3d22edabc0a4f3a3fb0280196
@@ -1,3 +1,6 @@
1
+ # v3.1.4
2
+ * [fix] Fix apply mapping implementation (#295)
3
+
1
4
  # v3.1.2
2
5
  * [feature] Add `trace` command for template composition inspection (#289)
3
6
  * [fix] Return non-zero exit code when polling stack destroy fails (#292)
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 2016 Chris Roberts
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.
@@ -34,4 +34,7 @@ File.open('doc/UserDocs/index.html', 'w') do |file|
34
34
  file.puts '<html><head><meta http-equiv="refresh" content="0; url=README.html" /></head></html>'
35
35
  end
36
36
 
37
+ FileUtils.mkdir('doc/img')
38
+ FileUtils.cp('img/sfn.jpg', 'doc/img/')
39
+
37
40
  puts 'done.'
@@ -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[1]
75
+ provider_stack.name == key_parts[0]
76
76
  when 1
77
77
  true
78
78
  else
79
- raise ArgumentError "Invalid name format for apply stack mapping (`#{a_key}`)"
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
- "This update may cause unexpected modifications!"
345
+ "This update may cause unexpected modifications!"
345
346
  ui.warn "Stack name: #{c_stack.name}. Parameter: #{p_key}. " \
346
- "Current value: #{stack_value}. Expected value: #{current_value} " \
347
- "(via: #{c_value.inspect})"
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"])
@@ -1,4 +1,4 @@
1
1
  module Sfn
2
2
  # Current library version
3
- VERSION = Gem::Version.new("3.1.2")
3
+ VERSION = Gem::Version.new("3.1.4")
4
4
  end
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.2
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-01-26 00:00:00.000000000 Z
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.1
496
+ rubygems_version: 3.0.3
497
497
  signing_key:
498
498
  specification_version: 4
499
499
  summary: SparkleFormation CLI