cft_smartcloud 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. data/CHANGELOG +0 -1
  2. data/VERSION +1 -1
  3. data/bin/cft_smartcloud +11 -1
  4. data/bin/smartcloud +11 -1
  5. data/cft_smartcloud.gemspec +91 -2
  6. data/lib/cli_tools/README.txt +50 -0
  7. data/lib/cli_tools/ic-add-keypair.cmd +29 -0
  8. data/lib/cli_tools/ic-add-keypair.sh +15 -0
  9. data/lib/cli_tools/ic-allocate-address.cmd +29 -0
  10. data/lib/cli_tools/ic-allocate-address.sh +14 -0
  11. data/lib/cli_tools/ic-attach-volume.cmd +27 -0
  12. data/lib/cli_tools/ic-attach-volume.sh +27 -0
  13. data/lib/cli_tools/ic-clone-image.cmd +27 -0
  14. data/lib/cli_tools/ic-clone-image.sh +14 -0
  15. data/lib/cli_tools/ic-clone-volume.cmd +27 -0
  16. data/lib/cli_tools/ic-clone-volume.sh +60 -0
  17. data/lib/cli_tools/ic-cmd.cmd +41 -0
  18. data/lib/cli_tools/ic-cmd.sh +38 -0
  19. data/lib/cli_tools/ic-create-instance.cmd +27 -0
  20. data/lib/cli_tools/ic-create-instance.sh +14 -0
  21. data/lib/cli_tools/ic-create-password.cmd +27 -0
  22. data/lib/cli_tools/ic-create-password.sh +14 -0
  23. data/lib/cli_tools/ic-create-volume.cmd +27 -0
  24. data/lib/cli_tools/ic-create-volume.sh +14 -0
  25. data/lib/cli_tools/ic-delete-image.cmd +27 -0
  26. data/lib/cli_tools/ic-delete-image.sh +14 -0
  27. data/lib/cli_tools/ic-delete-instance.cmd +27 -0
  28. data/lib/cli_tools/ic-delete-instance.sh +14 -0
  29. data/lib/cli_tools/ic-delete-volume.cmd +27 -0
  30. data/lib/cli_tools/ic-delete-volume.sh +14 -0
  31. data/lib/cli_tools/ic-describe-address-offerings.cmd +27 -0
  32. data/lib/cli_tools/ic-describe-address-offerings.sh +14 -0
  33. data/lib/cli_tools/ic-describe-addresses.cmd +27 -0
  34. data/lib/cli_tools/ic-describe-addresses.sh +14 -0
  35. data/lib/cli_tools/ic-describe-image-agreement.cmd +27 -0
  36. data/lib/cli_tools/ic-describe-image-agreement.sh +14 -0
  37. data/lib/cli_tools/ic-describe-image.cmd +27 -0
  38. data/lib/cli_tools/ic-describe-image.sh +14 -0
  39. data/lib/cli_tools/ic-describe-images.cmd +27 -0
  40. data/lib/cli_tools/ic-describe-images.sh +14 -0
  41. data/lib/cli_tools/ic-describe-instance.cmd +27 -0
  42. data/lib/cli_tools/ic-describe-instance.sh +14 -0
  43. data/lib/cli_tools/ic-describe-instances.cmd +27 -0
  44. data/lib/cli_tools/ic-describe-instances.sh +14 -0
  45. data/lib/cli_tools/ic-describe-keypair.cmd +27 -0
  46. data/lib/cli_tools/ic-describe-keypair.sh +14 -0
  47. data/lib/cli_tools/ic-describe-keypairs.cmd +27 -0
  48. data/lib/cli_tools/ic-describe-keypairs.sh +14 -0
  49. data/lib/cli_tools/ic-describe-location.cmd +14 -0
  50. data/lib/cli_tools/ic-describe-location.sh +14 -0
  51. data/lib/cli_tools/ic-describe-locations.cmd +14 -0
  52. data/lib/cli_tools/ic-describe-locations.sh +14 -0
  53. data/lib/cli_tools/ic-describe-request.cmd +27 -0
  54. data/lib/cli_tools/ic-describe-request.sh +14 -0
  55. data/lib/cli_tools/ic-describe-vlans.cmd +27 -0
  56. data/lib/cli_tools/ic-describe-vlans.sh +14 -0
  57. data/lib/cli_tools/ic-describe-volume-offerings.cmd +27 -0
  58. data/lib/cli_tools/ic-describe-volume-offerings.sh +14 -0
  59. data/lib/cli_tools/ic-describe-volume.cmd +27 -0
  60. data/lib/cli_tools/ic-describe-volume.sh +14 -0
  61. data/lib/cli_tools/ic-describe-volumes.cmd +27 -0
  62. data/lib/cli_tools/ic-describe-volumes.sh +14 -0
  63. data/lib/cli_tools/ic-detach-volume.cmd +27 -0
  64. data/lib/cli_tools/ic-detach-volume.sh +27 -0
  65. data/lib/cli_tools/ic-extend-reservation.cmd +27 -0
  66. data/lib/cli_tools/ic-extend-reservation.sh +14 -0
  67. data/lib/cli_tools/ic-generate-keypair.cmd +27 -0
  68. data/lib/cli_tools/ic-generate-keypair.sh +14 -0
  69. data/lib/cli_tools/ic-release-address.cmd +27 -0
  70. data/lib/cli_tools/ic-release-address.sh +14 -0
  71. data/lib/cli_tools/ic-remove-keypair.cmd +27 -0
  72. data/lib/cli_tools/ic-remove-keypair.sh +14 -0
  73. data/lib/cli_tools/ic-restart-instance.cmd +27 -0
  74. data/lib/cli_tools/ic-restart-instance.sh +14 -0
  75. data/lib/cli_tools/ic-save-instance.cmd +27 -0
  76. data/lib/cli_tools/ic-save-instance.sh +14 -0
  77. data/lib/cli_tools/ic-set-default-key.cmd +27 -0
  78. data/lib/cli_tools/ic-set-default-key.sh +14 -0
  79. data/lib/cli_tools/ic-update-instance.cmd +27 -0
  80. data/lib/cli_tools/ic-update-instance.sh +14 -0
  81. data/lib/cli_tools/ic-update-keypair.cmd +27 -0
  82. data/lib/cli_tools/ic-update-keypair.sh +14 -0
  83. data/lib/cli_tools/lib/DeveloperCloud_API_Client_JAR.jar +0 -0
  84. data/lib/cli_tools/lib/DeveloperCloud_CMD_Tool.jar +0 -0
  85. data/lib/cli_tools/lib/commons-beanutils-1.6.1.jar +0 -0
  86. data/lib/cli_tools/lib/commons-cli-1.2.jar +0 -0
  87. data/lib/cli_tools/lib/commons-codec-1.3.jar +0 -0
  88. data/lib/cli_tools/lib/commons-collections-3.2.1.jar +0 -0
  89. data/lib/cli_tools/lib/commons-digester-1.8.jar +0 -0
  90. data/lib/cli_tools/lib/commons-httpclient-3.1.jar +0 -0
  91. data/lib/cli_tools/lib/commons-lang-2.3.jar +0 -0
  92. data/lib/cli_tools/lib/commons-logging-1.1.1.jar +0 -0
  93. data/lib/cli_tools/logging.properties +7 -0
  94. data/lib/cli_tools/manifest.rmd +26 -0
  95. data/lib/mock_smartcloud.rb +12 -4
  96. data/lib/smartcloud.rb +101 -15
  97. metadata +92 -3
@@ -0,0 +1,60 @@
1
+ #!/bin/sh
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+ ############################################################################
10
+
11
+
12
+
13
+ #
14
+
15
+
16
+
17
+ # Licensed Materials - Property of IBM
18
+
19
+
20
+
21
+ #
22
+
23
+
24
+
25
+ # (C) COPYRIGHT International Business Machines Corp. 2009
26
+
27
+
28
+
29
+ #
30
+
31
+
32
+
33
+ # All Rights Reserved.
34
+
35
+
36
+
37
+ #
38
+
39
+
40
+
41
+ # US Government Users Restricted Rights - Use, duplication or
42
+
43
+
44
+
45
+ # disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
46
+
47
+
48
+
49
+ #
50
+
51
+
52
+
53
+ #############################################################################
54
+
55
+
56
+
57
+ ./ic-cmd.sh -action CloneVolume $*
58
+
59
+
60
+
@@ -0,0 +1,41 @@
1
+ REM ###########################################################################
2
+
3
+ REM #
4
+
5
+ REM # Licensed Materials - Property of IBM
6
+
7
+ REM #
8
+
9
+ REM # (C) COPYRIGHT International Business Machines Corp. 2009
10
+
11
+ REM #
12
+
13
+ REM # All Rights Reserved.
14
+
15
+ REM #
16
+
17
+ REM # US Government Users Restricted Rights - Use, duplication or
18
+
19
+ REM # disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
20
+
21
+ REM #
22
+
23
+ REM #############################################################################
24
+
25
+ if not exist "%JAVA_HOME%\bin\java.exe" goto showhelp
26
+
27
+ SET CL_CLASSPATH=.;%cd%\lib\commons-cli-1.2.jar;%cd%\lib\DeveloperCloud_CMD_Tool.jar;%cd%\lib\commons-logging-1.1.1.jar;%cd%\lib\commons-codec-1.3.jar;%cd%\lib\commons-httpclient-3.1.jar;%cd%\lib\DeveloperCloud_API_Client_JAR.jar;%cd%\lib\commons-beanutils-1.6.1.jar;%cd%\lib\commons-digester-1.8.jar;%cd%\lib\commons-lang-2.3.jar;%cd%\lib\commons-collections-3.2.1.jar
28
+
29
+ call "%JAVA_HOME%\bin\java" -Djava.util.logging.config.file=logging.properties -cp %CL_CLASSPATH% com.ibm.cloud.cmd.tool.Command %*
30
+
31
+ goto end
32
+
33
+
34
+
35
+ :showhelp
36
+
37
+ echo You don't have JAVA installed or the environment variable JAVA_HOME is not set correctly. Please install Java version version 1.5.x and set the JAVA_HOME environment variable if it's already installed.
38
+
39
+
40
+
41
+ :end
@@ -0,0 +1,38 @@
1
+ #!/bin/sh
2
+ ############################################################################
3
+ #
4
+ # Licensed Materials - Property of IBM
5
+ #
6
+ # (C) COPYRIGHT International Business Machines Corp. 2009
7
+ #
8
+ # All Rights Reserved.
9
+ #
10
+ # US Government Users Restricted Rights - Use, duplication or
11
+ # disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
12
+ #
13
+ #############################################################################
14
+ if [ -f ${JAVA_HOME}/bin/java ]; then
15
+
16
+ LANG=en_US
17
+ declare workpath=`pwd`
18
+ declare -a libs=`ls ./lib/`
19
+
20
+ CL_CLASSPATH=""
21
+ for i in ${libs[@]}
22
+ do
23
+ if [ ${i##.*}=".jar" ] ; then
24
+ if [ -z "${CL_CLASSPATH}" ] ; then
25
+ CL_CLASSPATH=${workpath}/lib/${i}
26
+ else
27
+ CL_CLASSPATH=${workpath}/lib/${i}:$CL_CLASSPATH
28
+ fi
29
+ fi
30
+ done
31
+
32
+ export CL_CLASSPATH
33
+
34
+ ${JAVA_HOME}/bin/java -Djava.util.logging.config.file=logging.properties -cp ${CL_CLASSPATH} com.ibm.cloud.cmd.tool.Command $*
35
+
36
+ else
37
+ echo You don't have JAVA installed or the environment variable JAVA_HOME is not set correctly. Please install Java version version 1.5.x and set the JAVA_HOME environment variable if it's already installed.
38
+ fi
@@ -0,0 +1,27 @@
1
+ @echo off
2
+
3
+ REM ###########################################################################
4
+
5
+ REM #
6
+
7
+ REM # Licensed Materials - Property of IBM
8
+
9
+ REM #
10
+
11
+ REM # (C) COPYRIGHT International Business Machines Corp. 2009
12
+
13
+ REM #
14
+
15
+ REM # All Rights Reserved.
16
+
17
+ REM #
18
+
19
+ REM # US Government Users Restricted Rights - Use, duplication or
20
+
21
+ REM # disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
22
+
23
+ REM #
24
+
25
+ REM #############################################################################
26
+
27
+ ic-cmd.cmd -action CreateInstance %*
@@ -0,0 +1,14 @@
1
+ #!/bin/sh
2
+ ############################################################################
3
+ #
4
+ # Licensed Materials - Property of IBM
5
+ #
6
+ # (C) COPYRIGHT International Business Machines Corp. 2009
7
+ #
8
+ # All Rights Reserved.
9
+ #
10
+ # US Government Users Restricted Rights - Use, duplication or
11
+ # disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
12
+ #
13
+ #############################################################################
14
+ ./ic-cmd.sh -action CreateInstance $*
@@ -0,0 +1,27 @@
1
+ @echo off
2
+
3
+ REM ###########################################################################
4
+
5
+ REM #
6
+
7
+ REM # Licensed Materials - Property of IBM
8
+
9
+ REM #
10
+
11
+ REM # (C) COPYRIGHT International Business Machines Corp. 2009
12
+
13
+ REM #
14
+
15
+ REM # All Rights Reserved.
16
+
17
+ REM #
18
+
19
+ REM # US Government Users Restricted Rights - Use, duplication or
20
+
21
+ REM # disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
22
+
23
+ REM #
24
+
25
+ REM #############################################################################
26
+
27
+ ic-cmd.cmd -action CreatePassword %*
@@ -0,0 +1,14 @@
1
+ #!/bin/sh
2
+ ############################################################################
3
+ #
4
+ # Licensed Materials - Property of IBM
5
+ #
6
+ # (C) COPYRIGHT International Business Machines Corp. 2009
7
+ #
8
+ # All Rights Reserved.
9
+ #
10
+ # US Government Users Restricted Rights - Use, duplication or
11
+ # disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
12
+ #
13
+ #############################################################################
14
+ ./ic-cmd.sh -action CreatePassword $*
@@ -0,0 +1,27 @@
1
+ @echo off
2
+
3
+ REM ###########################################################################
4
+
5
+ REM #
6
+
7
+ REM # Licensed Materials - Property of IBM
8
+
9
+ REM #
10
+
11
+ REM # (C) COPYRIGHT International Business Machines Corp. 2009
12
+
13
+ REM #
14
+
15
+ REM # All Rights Reserved.
16
+
17
+ REM #
18
+
19
+ REM # US Government Users Restricted Rights - Use, duplication or
20
+
21
+ REM # disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
22
+
23
+ REM #
24
+
25
+ REM #############################################################################
26
+
27
+ ic-cmd.cmd -action CreateVolume %*
@@ -0,0 +1,14 @@
1
+ #!/bin/sh
2
+ ############################################################################
3
+ #
4
+ # Licensed Materials - Property of IBM
5
+ #
6
+ # (C) COPYRIGHT International Business Machines Corp. 2009
7
+ #
8
+ # All Rights Reserved.
9
+ #
10
+ # US Government Users Restricted Rights - Use, duplication or
11
+ # disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
12
+ #
13
+ #############################################################################
14
+ ./ic-cmd.sh -action CreateVolume $*
@@ -0,0 +1,27 @@
1
+ @echo off
2
+
3
+ REM ###########################################################################
4
+
5
+ REM #
6
+
7
+ REM # Licensed Materials - Property of IBM
8
+
9
+ REM #
10
+
11
+ REM # (C) COPYRIGHT International Business Machines Corp. 2009
12
+
13
+ REM #
14
+
15
+ REM # All Rights Reserved.
16
+
17
+ REM #
18
+
19
+ REM # US Government Users Restricted Rights - Use, duplication or
20
+
21
+ REM # disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
22
+
23
+ REM #
24
+
25
+ REM #############################################################################
26
+
27
+ ic-cmd.cmd -action DeleteImage %*
@@ -0,0 +1,14 @@
1
+ #!/bin/sh
2
+ ############################################################################
3
+ #
4
+ # Licensed Materials - Property of IBM
5
+ #
6
+ # (C) COPYRIGHT International Business Machines Corp. 2009
7
+ #
8
+ # All Rights Reserved.
9
+ #
10
+ # US Government Users Restricted Rights - Use, duplication or
11
+ # disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
12
+ #
13
+ #############################################################################
14
+ ./ic-cmd.sh -action DeleteImage $*
@@ -0,0 +1,27 @@
1
+ @echo off
2
+
3
+ REM ###########################################################################
4
+
5
+ REM #
6
+
7
+ REM # Licensed Materials - Property of IBM
8
+
9
+ REM #
10
+
11
+ REM # (C) COPYRIGHT International Business Machines Corp. 2009
12
+
13
+ REM #
14
+
15
+ REM # All Rights Reserved.
16
+
17
+ REM #
18
+
19
+ REM # US Government Users Restricted Rights - Use, duplication or
20
+
21
+ REM # disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
22
+
23
+ REM #
24
+
25
+ REM #############################################################################
26
+
27
+ ic-cmd.cmd -action DeleteInstance %*
@@ -0,0 +1,14 @@
1
+ #!/bin/sh
2
+ ############################################################################
3
+ #
4
+ # Licensed Materials - Property of IBM
5
+ #
6
+ # (C) COPYRIGHT International Business Machines Corp. 2009
7
+ #
8
+ # All Rights Reserved.
9
+ #
10
+ # US Government Users Restricted Rights - Use, duplication or
11
+ # disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
12
+ #
13
+ #############################################################################
14
+ ./ic-cmd.sh -action DeleteInstance $*
@@ -0,0 +1,27 @@
1
+ @echo off
2
+
3
+ REM ###########################################################################
4
+
5
+ REM #
6
+
7
+ REM # Licensed Materials - Property of IBM
8
+
9
+ REM #
10
+
11
+ REM # (C) COPYRIGHT International Business Machines Corp. 2009
12
+
13
+ REM #
14
+
15
+ REM # All Rights Reserved.
16
+
17
+ REM #
18
+
19
+ REM # US Government Users Restricted Rights - Use, duplication or
20
+
21
+ REM # disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
22
+
23
+ REM #
24
+
25
+ REM #############################################################################
26
+
27
+ ic-cmd.cmd -action DeleteVolume %*
@@ -0,0 +1,14 @@
1
+ #!/bin/sh
2
+ ############################################################################
3
+ #
4
+ # Licensed Materials - Property of IBM
5
+ #
6
+ # (C) COPYRIGHT International Business Machines Corp. 2009
7
+ #
8
+ # All Rights Reserved.
9
+ #
10
+ # US Government Users Restricted Rights - Use, duplication or
11
+ # disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
12
+ #
13
+ #############################################################################
14
+ ./ic-cmd.sh -action DeleteVolume $*
@@ -0,0 +1,27 @@
1
+ @echo off
2
+
3
+ REM ###########################################################################
4
+
5
+ REM #
6
+
7
+ REM # Licensed Materials - Property of IBM
8
+
9
+ REM #
10
+
11
+ REM # (C) COPYRIGHT International Business Machines Corp. 2009
12
+
13
+ REM #
14
+
15
+ REM # All Rights Reserved.
16
+
17
+ REM #
18
+
19
+ REM # US Government Users Restricted Rights - Use, duplication or
20
+
21
+ REM # disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
22
+
23
+ REM #
24
+
25
+ REM #############################################################################
26
+
27
+ ic-cmd.cmd -action DescribeAddressOfferings %*
@@ -0,0 +1,14 @@
1
+ #!/bin/sh
2
+ ############################################################################
3
+ #
4
+ # Licensed Materials - Property of IBM
5
+ #
6
+ # (C) COPYRIGHT International Business Machines Corp. 2009
7
+ #
8
+ # All Rights Reserved.
9
+ #
10
+ # US Government Users Restricted Rights - Use, duplication or
11
+ # disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
12
+ #
13
+ #############################################################################
14
+ ./ic-cmd.sh -action DescribeAddressOfferings $*