cloudformation-ruby-dsl 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.
Files changed (63) hide show
  1. data/bin/cfn-cmd +4 -0
  2. data/lib/cloudformation-ruby-dsl/version.rb +1 -1
  3. data/vendor/AWSCloudFormation-1.0.12/README.TXT +44 -0
  4. data/vendor/AWSCloudFormation-1.0.12/RELEASENOTES.TXT +6 -0
  5. data/vendor/AWSCloudFormation-1.0.12/THIRDPARTYLICENSE.TXT +824 -0
  6. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-cancel-update-stack +9 -0
  7. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-cancel-update-stack.cmd +19 -0
  8. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-cmd +20 -0
  9. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-cmd.cmd +42 -0
  10. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-create-stack +7 -0
  11. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-create-stack.cmd +19 -0
  12. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-delete-stack +7 -0
  13. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-delete-stack.cmd +19 -0
  14. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-describe-stack-events +7 -0
  15. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-describe-stack-events.cmd +19 -0
  16. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-describe-stack-resource +7 -0
  17. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-describe-stack-resource.cmd +19 -0
  18. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-describe-stack-resources +7 -0
  19. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-describe-stack-resources.cmd +19 -0
  20. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-describe-stacks +7 -0
  21. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-describe-stacks.cmd +19 -0
  22. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-get-template +7 -0
  23. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-get-template.cmd +19 -0
  24. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-list-stack-resources +7 -0
  25. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-list-stack-resources.cmd +19 -0
  26. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-list-stacks +7 -0
  27. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-list-stacks.cmd +19 -0
  28. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-update-stack +7 -0
  29. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-update-stack.cmd +19 -0
  30. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-validate-template +7 -0
  31. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-validate-template.cmd +19 -0
  32. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-version +7 -0
  33. data/vendor/AWSCloudFormation-1.0.12/bin/cfn-version.cmd +21 -0
  34. data/vendor/AWSCloudFormation-1.0.12/bin/service +29 -0
  35. data/vendor/AWSCloudFormation-1.0.12/bin/service.cmd +74 -0
  36. data/vendor/AWSCloudFormation-1.0.12/credential-file-path.template +2 -0
  37. data/vendor/AWSCloudFormation-1.0.12/lib/CliCommando-1.0.jar +0 -0
  38. data/vendor/AWSCloudFormation-1.0.12/lib/activation-1.1.jar +0 -0
  39. data/vendor/AWSCloudFormation-1.0.12/lib/commons-cli-1.1.jar +0 -0
  40. data/vendor/AWSCloudFormation-1.0.12/lib/commons-codec-1.3.jar +0 -0
  41. data/vendor/AWSCloudFormation-1.0.12/lib/commons-discovery-0.2.jar +0 -0
  42. data/vendor/AWSCloudFormation-1.0.12/lib/commons-httpclient-3.0.jar +0 -0
  43. data/vendor/AWSCloudFormation-1.0.12/lib/commons-logging-1.0.4.jar +0 -0
  44. data/vendor/AWSCloudFormation-1.0.12/lib/commons-logging-api-1.1.1.jar +0 -0
  45. data/vendor/AWSCloudFormation-1.0.12/lib/httpclient-4.2.jar +0 -0
  46. data/vendor/AWSCloudFormation-1.0.12/lib/jaxb-api-2.0.jar +0 -0
  47. data/vendor/AWSCloudFormation-1.0.12/lib/jaxb-impl-2.0.1.jar +0 -0
  48. data/vendor/AWSCloudFormation-1.0.12/lib/jaxws-api-2.0.jar +0 -0
  49. data/vendor/AWSCloudFormation-1.0.12/lib/jdom-1.0.jar +0 -0
  50. data/vendor/AWSCloudFormation-1.0.12/lib/log4j.jar +0 -0
  51. data/vendor/AWSCloudFormation-1.0.12/lib/serializer.jar +0 -0
  52. data/vendor/AWSCloudFormation-1.0.12/lib/service.jar +0 -0
  53. data/vendor/AWSCloudFormation-1.0.12/lib/stax-api-1.0.1.jar +0 -0
  54. data/vendor/AWSCloudFormation-1.0.12/lib/wsdl4j-1.6.1.jar +0 -0
  55. data/vendor/AWSCloudFormation-1.0.12/lib/wss4j-1.5.7.jar +0 -0
  56. data/vendor/AWSCloudFormation-1.0.12/lib/wstx-asl-3.2.0.jar +0 -0
  57. data/vendor/AWSCloudFormation-1.0.12/lib/xalan-j2-2.7.0.jar +0 -0
  58. data/vendor/AWSCloudFormation-1.0.12/lib/xfire-all-1.2.6.jar +0 -0
  59. data/vendor/AWSCloudFormation-1.0.12/lib/xfire-jsr181-api-1.0-M1.jar +0 -0
  60. data/vendor/AWSCloudFormation-1.0.12/lib/xmlsec-1.4.2.jar +0 -0
  61. data/vendor/AWSCloudFormation-1.0.12/license.txt +96 -0
  62. data/vendor/AWSCloudFormation-1.0.12/notice.txt +40 -0
  63. metadata +63 -1
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env bash
2
+ if [ -n "${AWS_CLOUDFORMATION_HOME:+x}" ]; then
3
+ ${AWS_CLOUDFORMATION_HOME}/bin/cfn-cmd cfn-cancel-update-stack "$@"
4
+ else
5
+ echo AWS_CLOUDFORMATION_HOME is not set
6
+ exit 1
7
+ fi
8
+
9
+
@@ -0,0 +1,19 @@
1
+ @echo off
2
+
3
+ setlocal
4
+
5
+ REM Set intermediate env vars because the %VAR:x=y% notation below
6
+ REM (which replaces the string x with the string y in VAR)
7
+ REM doesn't handle undefined environment variables. This way
8
+ REM we're always dealing with defined variables in those tests.
9
+ set CHK_HOME=_%AWS_CLOUDFORMATION_HOME%
10
+
11
+ if "%CHK_HOME:"=%" == "_" goto HOME_MISSING
12
+
13
+ "%AWS_CLOUDFORMATION_HOME:"=%\bin\cfn-cmd.cmd" cfn-cancel-update-stack %*
14
+ goto DONE
15
+ :HOME_MISSING
16
+ echo AWS_CLOUDFORMATION_HOME is not set
17
+ exit /b 1
18
+
19
+ :DONE
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env bash
2
+ # This script passes the service dependent SERVICE_HOME to the common service script to run the command
3
+
4
+
5
+ # AWS_CLOUDFORMATION_HOME=`dirname $0`
6
+ # echo $AWS_CLOUDFORMATION_HOME
7
+
8
+ puts "hi"
9
+
10
+ # # Check AWS_CLOUDFORMATION_HOME
11
+ # if [ -z "${AWS_CLOUDFORMATION_HOME}" ]; then
12
+ # echo AWS_CLOUDFORMATION_HOME is not set
13
+ # exit 1
14
+ # fi
15
+ #
16
+ #
17
+ # export SERVICE_HOME=${AWS_CLOUDFORMATION_HOME}
18
+ #
19
+ #
20
+ # exec "${AWS_CLOUDFORMATION_HOME}/bin/service" "$@"
@@ -0,0 +1,42 @@
1
+ @echo off
2
+
3
+
4
+ setlocal
5
+
6
+
7
+ REM Set intermediate env vars because the %VAR:x=y% notation below
8
+ REM (which replaces the string x with the string y in VAR)
9
+ REM doesn't handle undefined environment variables. This way
10
+ REM we're always dealing with defined variables in those tests.
11
+ SET CHK_SERVICE_HOME=_%AWS_CLOUDFORMATION_HOME%
12
+ SET SERVICE_HOME=%AWS_CLOUDFORMATION_HOME%
13
+
14
+
15
+ if "%CHK_SERVICE_HOME:"=%" == "_" goto SERVICE_HOME_MISSING
16
+
17
+
18
+ SET SERVICE_HOME="%SERVICE_HOME:"=%"
19
+
20
+
21
+ :ARGV_LOOP
22
+ IF (%1) == () GOTO ARGV_DONE
23
+ REM Get around strange quoting bug
24
+ SET ARGV=%ARGV% %1
25
+ SHIFT
26
+ GOTO ARGV_LOOP
27
+ :ARGV_DONE
28
+
29
+
30
+ REM run
31
+ %SERVICE_HOME%\bin\service.cmd %ARGV%
32
+ goto DONE
33
+
34
+
35
+ :SERVICE_HOME_MISSING
36
+ echo AWS_CLOUDFORMATION_HOME is not set
37
+ exit /b 1
38
+
39
+
40
+ :DONE
41
+ endlocal
42
+
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env bash
2
+ if [ -n "${AWS_CLOUDFORMATION_HOME:+x}" ]; then
3
+ ${AWS_CLOUDFORMATION_HOME}/bin/cfn-cmd cfn-create-stack "$@"
4
+ else
5
+ echo AWS_CLOUDFORMATION_HOME is not set
6
+ exit 1
7
+ fi
@@ -0,0 +1,19 @@
1
+ @echo off
2
+
3
+ setlocal
4
+
5
+ REM Set intermediate env vars because the %VAR:x=y% notation below
6
+ REM (which replaces the string x with the string y in VAR)
7
+ REM doesn't handle undefined environment variables. This way
8
+ REM we're always dealing with defined variables in those tests.
9
+ set CHK_HOME=_%AWS_CLOUDFORMATION_HOME%
10
+
11
+ if "%CHK_HOME:"=%" == "_" goto HOME_MISSING
12
+
13
+ "%AWS_CLOUDFORMATION_HOME:"=%\bin\cfn-cmd.cmd" cfn-create-stack %*
14
+ goto DONE
15
+ :HOME_MISSING
16
+ echo AWS_CLOUDFORMATION_HOME is not set
17
+ exit /b 1
18
+
19
+ :DONE
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env bash
2
+ if [ -n "${AWS_CLOUDFORMATION_HOME:+x}" ]; then
3
+ ${AWS_CLOUDFORMATION_HOME}/bin/cfn-cmd cfn-delete-stack "$@"
4
+ else
5
+ echo AWS_CLOUDFORMATION_HOME is not set
6
+ exit 1
7
+ fi
@@ -0,0 +1,19 @@
1
+ @echo off
2
+
3
+ setlocal
4
+
5
+ REM Set intermediate env vars because the %VAR:x=y% notation below
6
+ REM (which replaces the string x with the string y in VAR)
7
+ REM doesn't handle undefined environment variables. This way
8
+ REM we're always dealing with defined variables in those tests.
9
+ set CHK_HOME=_%AWS_CLOUDFORMATION_HOME%
10
+
11
+ if "%CHK_HOME:"=%" == "_" goto HOME_MISSING
12
+
13
+ "%AWS_CLOUDFORMATION_HOME:"=%\bin\cfn-cmd.cmd" cfn-delete-stack %*
14
+ goto DONE
15
+ :HOME_MISSING
16
+ echo AWS_CLOUDFORMATION_HOME is not set
17
+ exit /b 1
18
+
19
+ :DONE
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env bash
2
+ if [ -n "${AWS_CLOUDFORMATION_HOME:+x}" ]; then
3
+ ${AWS_CLOUDFORMATION_HOME}/bin/cfn-cmd cfn-describe-stack-events "$@"
4
+ else
5
+ echo AWS_CLOUDFORMATION_HOME is not set
6
+ exit 1
7
+ fi
@@ -0,0 +1,19 @@
1
+ @echo off
2
+
3
+ setlocal
4
+
5
+ REM Set intermediate env vars because the %VAR:x=y% notation below
6
+ REM (which replaces the string x with the string y in VAR)
7
+ REM doesn't handle undefined environment variables. This way
8
+ REM we're always dealing with defined variables in those tests.
9
+ set CHK_HOME=_%AWS_CLOUDFORMATION_HOME%
10
+
11
+ if "%CHK_HOME:"=%" == "_" goto HOME_MISSING
12
+
13
+ "%AWS_CLOUDFORMATION_HOME:"=%\bin\cfn-cmd.cmd" cfn-describe-stack-events %*
14
+ goto DONE
15
+ :HOME_MISSING
16
+ echo AWS_CLOUDFORMATION_HOME is not set
17
+ exit /b 1
18
+
19
+ :DONE
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env bash
2
+ if [ -n "${AWS_CLOUDFORMATION_HOME:+x}" ]; then
3
+ ${AWS_CLOUDFORMATION_HOME}/bin/cfn-cmd cfn-describe-stack-resource "$@"
4
+ else
5
+ echo AWS_CLOUDFORMATION_HOME is not set
6
+ exit 1
7
+ fi
@@ -0,0 +1,19 @@
1
+ @echo off
2
+
3
+ setlocal
4
+
5
+ REM Set intermediate env vars because the %VAR:x=y% notation below
6
+ REM (which replaces the string x with the string y in VAR)
7
+ REM doesn't handle undefined environment variables. This way
8
+ REM we're always dealing with defined variables in those tests.
9
+ set CHK_HOME=_%AWS_CLOUDFORMATION_HOME%
10
+
11
+ if "%CHK_HOME:"=%" == "_" goto HOME_MISSING
12
+
13
+ "%AWS_CLOUDFORMATION_HOME:"=%\bin\cfn-cmd.cmd" cfn-describe-stack-resource %*
14
+ goto DONE
15
+ :HOME_MISSING
16
+ echo AWS_CLOUDFORMATION_HOME is not set
17
+ exit /b 1
18
+
19
+ :DONE
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env bash
2
+ if [ -n "${AWS_CLOUDFORMATION_HOME:+x}" ]; then
3
+ ${AWS_CLOUDFORMATION_HOME}/bin/cfn-cmd cfn-describe-stack-resources "$@"
4
+ else
5
+ echo AWS_CLOUDFORMATION_HOME is not set
6
+ exit 1
7
+ fi
@@ -0,0 +1,19 @@
1
+ @echo off
2
+
3
+ setlocal
4
+
5
+ REM Set intermediate env vars because the %VAR:x=y% notation below
6
+ REM (which replaces the string x with the string y in VAR)
7
+ REM doesn't handle undefined environment variables. This way
8
+ REM we're always dealing with defined variables in those tests.
9
+ set CHK_HOME=_%AWS_CLOUDFORMATION_HOME%
10
+
11
+ if "%CHK_HOME:"=%" == "_" goto HOME_MISSING
12
+
13
+ "%AWS_CLOUDFORMATION_HOME:"=%\bin\cfn-cmd.cmd" cfn-describe-stack-resources %*
14
+ goto DONE
15
+ :HOME_MISSING
16
+ echo AWS_CLOUDFORMATION_HOME is not set
17
+ exit /b 1
18
+
19
+ :DONE
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env bash
2
+ if [ -n "${AWS_CLOUDFORMATION_HOME:+x}" ]; then
3
+ ${AWS_CLOUDFORMATION_HOME}/bin/cfn-cmd cfn-describe-stacks "$@"
4
+ else
5
+ echo AWS_CLOUDFORMATION_HOME is not set
6
+ exit 1
7
+ fi
@@ -0,0 +1,19 @@
1
+ @echo off
2
+
3
+ setlocal
4
+
5
+ REM Set intermediate env vars because the %VAR:x=y% notation below
6
+ REM (which replaces the string x with the string y in VAR)
7
+ REM doesn't handle undefined environment variables. This way
8
+ REM we're always dealing with defined variables in those tests.
9
+ set CHK_HOME=_%AWS_CLOUDFORMATION_HOME%
10
+
11
+ if "%CHK_HOME:"=%" == "_" goto HOME_MISSING
12
+
13
+ "%AWS_CLOUDFORMATION_HOME:"=%\bin\cfn-cmd.cmd" cfn-describe-stacks %*
14
+ goto DONE
15
+ :HOME_MISSING
16
+ echo AWS_CLOUDFORMATION_HOME is not set
17
+ exit /b 1
18
+
19
+ :DONE
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env bash
2
+ if [ -n "${AWS_CLOUDFORMATION_HOME:+x}" ]; then
3
+ ${AWS_CLOUDFORMATION_HOME}/bin/cfn-cmd cfn-get-template "$@"
4
+ else
5
+ echo AWS_CLOUDFORMATION_HOME is not set
6
+ exit 1
7
+ fi
@@ -0,0 +1,19 @@
1
+ @echo off
2
+
3
+ setlocal
4
+
5
+ REM Set intermediate env vars because the %VAR:x=y% notation below
6
+ REM (which replaces the string x with the string y in VAR)
7
+ REM doesn't handle undefined environment variables. This way
8
+ REM we're always dealing with defined variables in those tests.
9
+ set CHK_HOME=_%AWS_CLOUDFORMATION_HOME%
10
+
11
+ if "%CHK_HOME:"=%" == "_" goto HOME_MISSING
12
+
13
+ "%AWS_CLOUDFORMATION_HOME:"=%\bin\cfn-cmd.cmd" cfn-get-template %*
14
+ goto DONE
15
+ :HOME_MISSING
16
+ echo AWS_CLOUDFORMATION_HOME is not set
17
+ exit /b 1
18
+
19
+ :DONE
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env bash
2
+ if [ -n "${AWS_CLOUDFORMATION_HOME:+x}" ]; then
3
+ ${AWS_CLOUDFORMATION_HOME}/bin/cfn-cmd cfn-list-stack-resources "$@"
4
+ else
5
+ echo AWS_CLOUDFORMATION_HOME is not set
6
+ exit 1
7
+ fi
@@ -0,0 +1,19 @@
1
+ @echo off
2
+
3
+ setlocal
4
+
5
+ REM Set intermediate env vars because the %VAR:x=y% notation below
6
+ REM (which replaces the string x with the string y in VAR)
7
+ REM doesn't handle undefined environment variables. This way
8
+ REM we're always dealing with defined variables in those tests.
9
+ set CHK_HOME=_%AWS_CLOUDFORMATION_HOME%
10
+
11
+ if "%CHK_HOME:"=%" == "_" goto HOME_MISSING
12
+
13
+ "%AWS_CLOUDFORMATION_HOME:"=%\bin\cfn-cmd.cmd" cfn-list-stack-resources %*
14
+ goto DONE
15
+ :HOME_MISSING
16
+ echo AWS_CLOUDFORMATION_HOME is not set
17
+ exit /b 1
18
+
19
+ :DONE
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env bash
2
+ if [ -n "${AWS_CLOUDFORMATION_HOME:+x}" ]; then
3
+ ${AWS_CLOUDFORMATION_HOME}/bin/cfn-cmd cfn-list-stacks "$@"
4
+ else
5
+ echo AWS_CLOUDFORMATION_HOME is not set
6
+ exit 1
7
+ fi
@@ -0,0 +1,19 @@
1
+ @echo off
2
+
3
+ setlocal
4
+
5
+ REM Set intermediate env vars because the %VAR:x=y% notation below
6
+ REM (which replaces the string x with the string y in VAR)
7
+ REM doesn't handle undefined environment variables. This way
8
+ REM we're always dealing with defined variables in those tests.
9
+ set CHK_HOME=_%AWS_CLOUDFORMATION_HOME%
10
+
11
+ if "%CHK_HOME:"=%" == "_" goto HOME_MISSING
12
+
13
+ "%AWS_CLOUDFORMATION_HOME:"=%\bin\cfn-cmd.cmd" cfn-list-stacks %*
14
+ goto DONE
15
+ :HOME_MISSING
16
+ echo AWS_CLOUDFORMATION_HOME is not set
17
+ exit /b 1
18
+
19
+ :DONE
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env bash
2
+ if [ -n "${AWS_CLOUDFORMATION_HOME:+x}" ]; then
3
+ ${AWS_CLOUDFORMATION_HOME}/bin/cfn-cmd cfn-update-stack "$@"
4
+ else
5
+ echo AWS_CLOUDFORMATION_HOME is not set
6
+ exit 1
7
+ fi
@@ -0,0 +1,19 @@
1
+ @echo off
2
+
3
+ setlocal
4
+
5
+ REM Set intermediate env vars because the %VAR:x=y% notation below
6
+ REM (which replaces the string x with the string y in VAR)
7
+ REM doesn't handle undefined environment variables. This way
8
+ REM we're always dealing with defined variables in those tests.
9
+ set CHK_HOME=_%AWS_CLOUDFORMATION_HOME%
10
+
11
+ if "%CHK_HOME:"=%" == "_" goto HOME_MISSING
12
+
13
+ "%AWS_CLOUDFORMATION_HOME:"=%\bin\cfn-cmd.cmd" cfn-update-stack %*
14
+ goto DONE
15
+ :HOME_MISSING
16
+ echo AWS_CLOUDFORMATION_HOME is not set
17
+ exit /b 1
18
+
19
+ :DONE
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env bash
2
+ if [ -n "${AWS_CLOUDFORMATION_HOME:+x}" ]; then
3
+ ${AWS_CLOUDFORMATION_HOME}/bin/cfn-cmd cfn-validate-template "$@"
4
+ else
5
+ echo AWS_CLOUDFORMATION_HOME is not set
6
+ exit 1
7
+ fi
@@ -0,0 +1,19 @@
1
+ @echo off
2
+
3
+ setlocal
4
+
5
+ REM Set intermediate env vars because the %VAR:x=y% notation below
6
+ REM (which replaces the string x with the string y in VAR)
7
+ REM doesn't handle undefined environment variables. This way
8
+ REM we're always dealing with defined variables in those tests.
9
+ set CHK_HOME=_%AWS_CLOUDFORMATION_HOME%
10
+
11
+ if "%CHK_HOME:"=%" == "_" goto HOME_MISSING
12
+
13
+ "%AWS_CLOUDFORMATION_HOME:"=%\bin\cfn-cmd.cmd" cfn-validate-template %*
14
+ goto DONE
15
+ :HOME_MISSING
16
+ echo AWS_CLOUDFORMATION_HOME is not set
17
+ exit /b 1
18
+
19
+ :DONE
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env bash
2
+ if [ -n "${AWS_CLOUDFORMATION_HOME:+x}" ]; then
3
+ ${AWS_CLOUDFORMATION_HOME}/bin/cfn-cmd version "$@"
4
+ else
5
+ echo AWS_CLOUDFORMATION_HOME is not set
6
+ exit 1
7
+ fi
@@ -0,0 +1,21 @@
1
+ @echo off
2
+
3
+ setlocal
4
+
5
+ REM Set intermediate env vars because the %VAR:x=y% notation below
6
+ REM (which replaces the string x with the string y in VAR)
7
+ REM doesn't handle undefined environment variables. This way
8
+ REM we're always dealing with defined variables in those tests.
9
+ set CHK_HOME=_%AWS_CLOUDFORMATION_HOME%
10
+
11
+ if "%CHK_HOME:"=%" == "_" goto HOME_MISSING
12
+
13
+ "%AWS_CLOUDFORMATION_HOME:"=%\bin\cfn-cmd.cmd" version %*
14
+ goto DONE
15
+ :HOME_MISSING
16
+ echo AWS_CLOUDFORMATION_HOME is not set
17
+ exit /b 1
18
+
19
+ :DONE
20
+ ~
21
+