cft_smartcloud 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. data/.gitignore +2 -0
  2. data/CHANGELOG +8 -0
  3. data/LICENSE +178 -0
  4. data/README.rdoc +71 -0
  5. data/Rakefile +53 -0
  6. data/VERSION +1 -0
  7. data/bin/smartcloud +37 -0
  8. data/cft_smartcloud.gemspec +176 -0
  9. data/lib/cli_tools/README.txt +50 -0
  10. data/lib/cli_tools/ic-add-keypair.cmd +29 -0
  11. data/lib/cli_tools/ic-add-keypair.sh +15 -0
  12. data/lib/cli_tools/ic-allocate-address.cmd +29 -0
  13. data/lib/cli_tools/ic-allocate-address.sh +14 -0
  14. data/lib/cli_tools/ic-attach-volume.cmd +27 -0
  15. data/lib/cli_tools/ic-attach-volume.sh +27 -0
  16. data/lib/cli_tools/ic-clone-image.cmd +27 -0
  17. data/lib/cli_tools/ic-clone-image.sh +14 -0
  18. data/lib/cli_tools/ic-clone-volume.cmd +27 -0
  19. data/lib/cli_tools/ic-clone-volume.sh +60 -0
  20. data/lib/cli_tools/ic-cmd.cmd +41 -0
  21. data/lib/cli_tools/ic-cmd.sh +38 -0
  22. data/lib/cli_tools/ic-create-instance.cmd +27 -0
  23. data/lib/cli_tools/ic-create-instance.sh +14 -0
  24. data/lib/cli_tools/ic-create-password.cmd +27 -0
  25. data/lib/cli_tools/ic-create-password.sh +14 -0
  26. data/lib/cli_tools/ic-create-volume.cmd +27 -0
  27. data/lib/cli_tools/ic-create-volume.sh +14 -0
  28. data/lib/cli_tools/ic-delete-image.cmd +27 -0
  29. data/lib/cli_tools/ic-delete-image.sh +14 -0
  30. data/lib/cli_tools/ic-delete-instance.cmd +27 -0
  31. data/lib/cli_tools/ic-delete-instance.sh +14 -0
  32. data/lib/cli_tools/ic-delete-volume.cmd +27 -0
  33. data/lib/cli_tools/ic-delete-volume.sh +14 -0
  34. data/lib/cli_tools/ic-describe-address-offerings.cmd +27 -0
  35. data/lib/cli_tools/ic-describe-address-offerings.sh +14 -0
  36. data/lib/cli_tools/ic-describe-addresses.cmd +27 -0
  37. data/lib/cli_tools/ic-describe-addresses.sh +14 -0
  38. data/lib/cli_tools/ic-describe-image-agreement.cmd +27 -0
  39. data/lib/cli_tools/ic-describe-image-agreement.sh +14 -0
  40. data/lib/cli_tools/ic-describe-image.cmd +27 -0
  41. data/lib/cli_tools/ic-describe-image.sh +14 -0
  42. data/lib/cli_tools/ic-describe-images.cmd +27 -0
  43. data/lib/cli_tools/ic-describe-images.sh +14 -0
  44. data/lib/cli_tools/ic-describe-instance.cmd +27 -0
  45. data/lib/cli_tools/ic-describe-instance.sh +14 -0
  46. data/lib/cli_tools/ic-describe-instances.cmd +27 -0
  47. data/lib/cli_tools/ic-describe-instances.sh +14 -0
  48. data/lib/cli_tools/ic-describe-keypair.cmd +27 -0
  49. data/lib/cli_tools/ic-describe-keypair.sh +14 -0
  50. data/lib/cli_tools/ic-describe-keypairs.cmd +27 -0
  51. data/lib/cli_tools/ic-describe-keypairs.sh +14 -0
  52. data/lib/cli_tools/ic-describe-location.cmd +14 -0
  53. data/lib/cli_tools/ic-describe-location.sh +14 -0
  54. data/lib/cli_tools/ic-describe-locations.cmd +14 -0
  55. data/lib/cli_tools/ic-describe-locations.sh +14 -0
  56. data/lib/cli_tools/ic-describe-request.cmd +27 -0
  57. data/lib/cli_tools/ic-describe-request.sh +14 -0
  58. data/lib/cli_tools/ic-describe-vlans.cmd +27 -0
  59. data/lib/cli_tools/ic-describe-vlans.sh +14 -0
  60. data/lib/cli_tools/ic-describe-volume-offerings.cmd +27 -0
  61. data/lib/cli_tools/ic-describe-volume-offerings.sh +14 -0
  62. data/lib/cli_tools/ic-describe-volume.cmd +27 -0
  63. data/lib/cli_tools/ic-describe-volume.sh +14 -0
  64. data/lib/cli_tools/ic-describe-volumes.cmd +27 -0
  65. data/lib/cli_tools/ic-describe-volumes.sh +14 -0
  66. data/lib/cli_tools/ic-detach-volume.cmd +27 -0
  67. data/lib/cli_tools/ic-detach-volume.sh +27 -0
  68. data/lib/cli_tools/ic-extend-reservation.cmd +27 -0
  69. data/lib/cli_tools/ic-extend-reservation.sh +14 -0
  70. data/lib/cli_tools/ic-generate-keypair.cmd +27 -0
  71. data/lib/cli_tools/ic-generate-keypair.sh +14 -0
  72. data/lib/cli_tools/ic-release-address.cmd +27 -0
  73. data/lib/cli_tools/ic-release-address.sh +14 -0
  74. data/lib/cli_tools/ic-remove-keypair.cmd +27 -0
  75. data/lib/cli_tools/ic-remove-keypair.sh +14 -0
  76. data/lib/cli_tools/ic-restart-instance.cmd +27 -0
  77. data/lib/cli_tools/ic-restart-instance.sh +14 -0
  78. data/lib/cli_tools/ic-save-instance.cmd +27 -0
  79. data/lib/cli_tools/ic-save-instance.sh +14 -0
  80. data/lib/cli_tools/ic-set-default-key.cmd +27 -0
  81. data/lib/cli_tools/ic-set-default-key.sh +14 -0
  82. data/lib/cli_tools/ic-update-instance.cmd +27 -0
  83. data/lib/cli_tools/ic-update-instance.sh +14 -0
  84. data/lib/cli_tools/ic-update-keypair.cmd +27 -0
  85. data/lib/cli_tools/ic-update-keypair.sh +14 -0
  86. data/lib/cli_tools/lib/DeveloperCloud_API_Client_JAR.jar +0 -0
  87. data/lib/cli_tools/lib/DeveloperCloud_CMD_Tool.jar +0 -0
  88. data/lib/cli_tools/lib/commons-beanutils-1.6.1.jar +0 -0
  89. data/lib/cli_tools/lib/commons-cli-1.2.jar +0 -0
  90. data/lib/cli_tools/lib/commons-codec-1.3.jar +0 -0
  91. data/lib/cli_tools/lib/commons-collections-3.2.1.jar +0 -0
  92. data/lib/cli_tools/lib/commons-digester-1.8.jar +0 -0
  93. data/lib/cli_tools/lib/commons-httpclient-3.1.jar +0 -0
  94. data/lib/cli_tools/lib/commons-lang-2.3.jar +0 -0
  95. data/lib/cli_tools/lib/commons-logging-1.1.1.jar +0 -0
  96. data/lib/cli_tools/logging.properties +7 -0
  97. data/lib/cli_tools/manifest.rmd +26 -0
  98. data/lib/config/config.yml +50 -0
  99. data/lib/hash_fix.rb +37 -0
  100. data/lib/mime-types-1.16/History.txt +107 -0
  101. data/lib/mime-types-1.16/Install.txt +17 -0
  102. data/lib/mime-types-1.16/Licence.txt +15 -0
  103. data/lib/mime-types-1.16/Manifest.txt +12 -0
  104. data/lib/mime-types-1.16/README.txt +28 -0
  105. data/lib/mime-types-1.16/Rakefile +316 -0
  106. data/lib/mime-types-1.16/lib/mime/types.rb +751 -0
  107. data/lib/mime-types-1.16/lib/mime/types.rb.data +1324 -0
  108. data/lib/mime-types-1.16/mime-types.gemspec +43 -0
  109. data/lib/mime-types-1.16/setup.rb +1585 -0
  110. data/lib/mime-types-1.16/test/test_mime_type.rb +356 -0
  111. data/lib/mime-types-1.16/test/test_mime_types.rb +122 -0
  112. data/lib/mock_smartcloud.rb +53 -0
  113. data/lib/rest-client-1.6.3/README.rdoc +276 -0
  114. data/lib/rest-client-1.6.3/Rakefile +66 -0
  115. data/lib/rest-client-1.6.3/VERSION +1 -0
  116. data/lib/rest-client-1.6.3/bin/restclient +92 -0
  117. data/lib/rest-client-1.6.3/history.md +112 -0
  118. data/lib/rest-client-1.6.3/lib/rest-client.rb +2 -0
  119. data/lib/rest-client-1.6.3/lib/rest_client.rb +2 -0
  120. data/lib/rest-client-1.6.3/lib/restclient/abstract_response.rb +106 -0
  121. data/lib/rest-client-1.6.3/lib/restclient/exceptions.rb +193 -0
  122. data/lib/rest-client-1.6.3/lib/restclient/net_http_ext.rb +21 -0
  123. data/lib/rest-client-1.6.3/lib/restclient/payload.rb +220 -0
  124. data/lib/rest-client-1.6.3/lib/restclient/raw_response.rb +34 -0
  125. data/lib/rest-client-1.6.3/lib/restclient/request.rb +314 -0
  126. data/lib/rest-client-1.6.3/lib/restclient/resource.rb +169 -0
  127. data/lib/rest-client-1.6.3/lib/restclient/response.rb +24 -0
  128. data/lib/rest-client-1.6.3/lib/restclient.rb +174 -0
  129. data/lib/restclient_fix.rb +41 -0
  130. data/lib/smartcloud.rb +616 -0
  131. data/lib/smartcloud_logger.rb +20 -0
  132. data/lib/xml-simple-1.0.12/lib/xmlsimple.rb +1028 -0
  133. data/script/console +3 -0
  134. data/test/helper.rb +22 -0
  135. metadata +196 -0
data/script/console ADDED
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ irb -r"lib/smartcloud"
data/test/helper.rb ADDED
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env ruby
2
+ #####################################################################################
3
+ # Copyright (c) 2011, Cohesive Flexible Technologies, Inc.
4
+ # This copyrighted material is the property of Cohesive Flexible Technologies and
5
+ # is subject to the license terms of the product it is contained within, whether
6
+ # in text or compiled form. It is licensed under the terms expressed in the
7
+ # accompanying README and LICENSE files.
8
+ #
9
+ # This program is AS IS and WITHOUT ANY WARRANTY; without even the implied warranty
10
+ # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
+ #####################################################################################
12
+
13
+ require 'rubygems'
14
+ require 'test/unit'
15
+ require 'shoulda'
16
+
17
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
18
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
19
+ require 'smartcloud'
20
+
21
+ class Test::Unit::TestCase
22
+ end
metadata ADDED
@@ -0,0 +1,196 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cft_smartcloud
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 4
9
+ version: 0.1.4
10
+ platform: ruby
11
+ authors:
12
+ - yan
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2011-07-25 00:00:00 -07:00
18
+ default_executable: smartcloud
19
+ dependencies: []
20
+
21
+ description: CohesiveFT Ruby Interface for IBM SmartCloud
22
+ email: yan.pritzker@cohesiveft.com
23
+ executables:
24
+ - smartcloud
25
+ extensions: []
26
+
27
+ extra_rdoc_files:
28
+ - LICENSE
29
+ - README.rdoc
30
+ files:
31
+ - .gitignore
32
+ - CHANGELOG
33
+ - LICENSE
34
+ - README.rdoc
35
+ - Rakefile
36
+ - VERSION
37
+ - bin/smartcloud
38
+ - cft_smartcloud.gemspec
39
+ - lib/cli_tools/README.txt
40
+ - lib/cli_tools/ic-add-keypair.cmd
41
+ - lib/cli_tools/ic-add-keypair.sh
42
+ - lib/cli_tools/ic-allocate-address.cmd
43
+ - lib/cli_tools/ic-allocate-address.sh
44
+ - lib/cli_tools/ic-attach-volume.cmd
45
+ - lib/cli_tools/ic-attach-volume.sh
46
+ - lib/cli_tools/ic-clone-image.cmd
47
+ - lib/cli_tools/ic-clone-image.sh
48
+ - lib/cli_tools/ic-clone-volume.cmd
49
+ - lib/cli_tools/ic-clone-volume.sh
50
+ - lib/cli_tools/ic-cmd.cmd
51
+ - lib/cli_tools/ic-cmd.sh
52
+ - lib/cli_tools/ic-create-instance.cmd
53
+ - lib/cli_tools/ic-create-instance.sh
54
+ - lib/cli_tools/ic-create-password.cmd
55
+ - lib/cli_tools/ic-create-password.sh
56
+ - lib/cli_tools/ic-create-volume.cmd
57
+ - lib/cli_tools/ic-create-volume.sh
58
+ - lib/cli_tools/ic-delete-image.cmd
59
+ - lib/cli_tools/ic-delete-image.sh
60
+ - lib/cli_tools/ic-delete-instance.cmd
61
+ - lib/cli_tools/ic-delete-instance.sh
62
+ - lib/cli_tools/ic-delete-volume.cmd
63
+ - lib/cli_tools/ic-delete-volume.sh
64
+ - lib/cli_tools/ic-describe-address-offerings.cmd
65
+ - lib/cli_tools/ic-describe-address-offerings.sh
66
+ - lib/cli_tools/ic-describe-addresses.cmd
67
+ - lib/cli_tools/ic-describe-addresses.sh
68
+ - lib/cli_tools/ic-describe-image-agreement.cmd
69
+ - lib/cli_tools/ic-describe-image-agreement.sh
70
+ - lib/cli_tools/ic-describe-image.cmd
71
+ - lib/cli_tools/ic-describe-image.sh
72
+ - lib/cli_tools/ic-describe-images.cmd
73
+ - lib/cli_tools/ic-describe-images.sh
74
+ - lib/cli_tools/ic-describe-instance.cmd
75
+ - lib/cli_tools/ic-describe-instance.sh
76
+ - lib/cli_tools/ic-describe-instances.cmd
77
+ - lib/cli_tools/ic-describe-instances.sh
78
+ - lib/cli_tools/ic-describe-keypair.cmd
79
+ - lib/cli_tools/ic-describe-keypair.sh
80
+ - lib/cli_tools/ic-describe-keypairs.cmd
81
+ - lib/cli_tools/ic-describe-keypairs.sh
82
+ - lib/cli_tools/ic-describe-location.cmd
83
+ - lib/cli_tools/ic-describe-location.sh
84
+ - lib/cli_tools/ic-describe-locations.cmd
85
+ - lib/cli_tools/ic-describe-locations.sh
86
+ - lib/cli_tools/ic-describe-request.cmd
87
+ - lib/cli_tools/ic-describe-request.sh
88
+ - lib/cli_tools/ic-describe-vlans.cmd
89
+ - lib/cli_tools/ic-describe-vlans.sh
90
+ - lib/cli_tools/ic-describe-volume-offerings.cmd
91
+ - lib/cli_tools/ic-describe-volume-offerings.sh
92
+ - lib/cli_tools/ic-describe-volume.cmd
93
+ - lib/cli_tools/ic-describe-volume.sh
94
+ - lib/cli_tools/ic-describe-volumes.cmd
95
+ - lib/cli_tools/ic-describe-volumes.sh
96
+ - lib/cli_tools/ic-detach-volume.cmd
97
+ - lib/cli_tools/ic-detach-volume.sh
98
+ - lib/cli_tools/ic-extend-reservation.cmd
99
+ - lib/cli_tools/ic-extend-reservation.sh
100
+ - lib/cli_tools/ic-generate-keypair.cmd
101
+ - lib/cli_tools/ic-generate-keypair.sh
102
+ - lib/cli_tools/ic-release-address.cmd
103
+ - lib/cli_tools/ic-release-address.sh
104
+ - lib/cli_tools/ic-remove-keypair.cmd
105
+ - lib/cli_tools/ic-remove-keypair.sh
106
+ - lib/cli_tools/ic-restart-instance.cmd
107
+ - lib/cli_tools/ic-restart-instance.sh
108
+ - lib/cli_tools/ic-save-instance.cmd
109
+ - lib/cli_tools/ic-save-instance.sh
110
+ - lib/cli_tools/ic-set-default-key.cmd
111
+ - lib/cli_tools/ic-set-default-key.sh
112
+ - lib/cli_tools/ic-update-instance.cmd
113
+ - lib/cli_tools/ic-update-instance.sh
114
+ - lib/cli_tools/ic-update-keypair.cmd
115
+ - lib/cli_tools/ic-update-keypair.sh
116
+ - lib/cli_tools/lib/DeveloperCloud_API_Client_JAR.jar
117
+ - lib/cli_tools/lib/DeveloperCloud_CMD_Tool.jar
118
+ - lib/cli_tools/lib/commons-beanutils-1.6.1.jar
119
+ - lib/cli_tools/lib/commons-cli-1.2.jar
120
+ - lib/cli_tools/lib/commons-codec-1.3.jar
121
+ - lib/cli_tools/lib/commons-collections-3.2.1.jar
122
+ - lib/cli_tools/lib/commons-digester-1.8.jar
123
+ - lib/cli_tools/lib/commons-httpclient-3.1.jar
124
+ - lib/cli_tools/lib/commons-lang-2.3.jar
125
+ - lib/cli_tools/lib/commons-logging-1.1.1.jar
126
+ - lib/cli_tools/logging.properties
127
+ - lib/cli_tools/manifest.rmd
128
+ - lib/config/config.yml
129
+ - lib/hash_fix.rb
130
+ - lib/mime-types-1.16/History.txt
131
+ - lib/mime-types-1.16/Install.txt
132
+ - lib/mime-types-1.16/Licence.txt
133
+ - lib/mime-types-1.16/Manifest.txt
134
+ - lib/mime-types-1.16/README.txt
135
+ - lib/mime-types-1.16/Rakefile
136
+ - lib/mime-types-1.16/lib/mime/types.rb
137
+ - lib/mime-types-1.16/lib/mime/types.rb.data
138
+ - lib/mime-types-1.16/mime-types.gemspec
139
+ - lib/mime-types-1.16/setup.rb
140
+ - lib/mime-types-1.16/test/test_mime_type.rb
141
+ - lib/mime-types-1.16/test/test_mime_types.rb
142
+ - lib/mock_smartcloud.rb
143
+ - lib/rest-client-1.6.3/README.rdoc
144
+ - lib/rest-client-1.6.3/Rakefile
145
+ - lib/rest-client-1.6.3/VERSION
146
+ - lib/rest-client-1.6.3/bin/restclient
147
+ - lib/rest-client-1.6.3/history.md
148
+ - lib/rest-client-1.6.3/lib/rest-client.rb
149
+ - lib/rest-client-1.6.3/lib/rest_client.rb
150
+ - lib/rest-client-1.6.3/lib/restclient.rb
151
+ - lib/rest-client-1.6.3/lib/restclient/abstract_response.rb
152
+ - lib/rest-client-1.6.3/lib/restclient/exceptions.rb
153
+ - lib/rest-client-1.6.3/lib/restclient/net_http_ext.rb
154
+ - lib/rest-client-1.6.3/lib/restclient/payload.rb
155
+ - lib/rest-client-1.6.3/lib/restclient/raw_response.rb
156
+ - lib/rest-client-1.6.3/lib/restclient/request.rb
157
+ - lib/rest-client-1.6.3/lib/restclient/resource.rb
158
+ - lib/rest-client-1.6.3/lib/restclient/response.rb
159
+ - lib/restclient_fix.rb
160
+ - lib/smartcloud.rb
161
+ - lib/smartcloud_logger.rb
162
+ - lib/xml-simple-1.0.12/lib/xmlsimple.rb
163
+ - script/console
164
+ - test/helper.rb
165
+ has_rdoc: true
166
+ homepage: http://github.com/cohesive/smartcloud
167
+ licenses: []
168
+
169
+ post_install_message:
170
+ rdoc_options:
171
+ - --charset=UTF-8
172
+ require_paths:
173
+ - lib
174
+ required_ruby_version: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - ">="
177
+ - !ruby/object:Gem::Version
178
+ segments:
179
+ - 0
180
+ version: "0"
181
+ required_rubygems_version: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - ">="
184
+ - !ruby/object:Gem::Version
185
+ segments:
186
+ - 0
187
+ version: "0"
188
+ requirements: []
189
+
190
+ rubyforge_project:
191
+ rubygems_version: 1.3.6
192
+ signing_key:
193
+ specification_version: 3
194
+ summary: CohesiveFT IBM SmartCloud API Gem
195
+ test_files:
196
+ - test/helper.rb