cft_smartcloud 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. data/.gitignore +1 -0
  2. data/CHANGELOG +11 -0
  3. data/README.md +106 -0
  4. data/VERSION +1 -1
  5. data/bin/cft_smartcloud +33 -7
  6. data/bin/smartcloud +33 -7
  7. data/cft_smartcloud.gemspec +84 -20
  8. data/lib/config/config.yml +2 -0
  9. data/lib/curl_client.rb +42 -0
  10. data/lib/rest-client-1.6.6-master/.gitignore +6 -0
  11. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/README.rdoc +10 -1
  12. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/Rakefile +0 -0
  13. data/lib/rest-client-1.6.6-master/VERSION +1 -0
  14. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/bin/restclient +5 -4
  15. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/history.md +22 -0
  16. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/lib/rest-client.rb +0 -0
  17. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/lib/rest_client.rb +0 -0
  18. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/lib/restclient/abstract_response.rb +0 -0
  19. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/lib/restclient/exceptions.rb +0 -0
  20. data/lib/rest-client-1.6.6-master/lib/restclient/net_http_ext.rb +55 -0
  21. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/lib/restclient/payload.rb +17 -2
  22. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/lib/restclient/raw_response.rb +0 -0
  23. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/lib/restclient/request.rb +21 -19
  24. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/lib/restclient/resource.rb +0 -0
  25. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/lib/restclient/response.rb +0 -0
  26. data/lib/{rest-client-1.6.3 → rest-client-1.6.6-master}/lib/restclient.rb +0 -0
  27. data/lib/rest-client-1.6.6-master/rest-client.gemspec +76 -0
  28. data/lib/rest-client-1.6.6-master/spec/abstract_response_spec.rb +85 -0
  29. data/lib/rest-client-1.6.6-master/spec/base.rb +16 -0
  30. data/lib/rest-client-1.6.6-master/spec/exceptions_spec.rb +98 -0
  31. data/lib/rest-client-1.6.6-master/spec/integration/certs/equifax.crt +19 -0
  32. data/lib/rest-client-1.6.6-master/spec/integration/certs/verisign.crt +14 -0
  33. data/lib/rest-client-1.6.6-master/spec/integration/request_spec.rb +25 -0
  34. data/lib/rest-client-1.6.6-master/spec/integration_spec.rb +38 -0
  35. data/lib/rest-client-1.6.6-master/spec/master_shake.jpg +0 -0
  36. data/lib/rest-client-1.6.6-master/spec/payload_spec.rb +234 -0
  37. data/lib/rest-client-1.6.6-master/spec/raw_response_spec.rb +17 -0
  38. data/lib/rest-client-1.6.6-master/spec/request2_spec.rb +40 -0
  39. data/lib/rest-client-1.6.6-master/spec/request_spec.rb +536 -0
  40. data/lib/rest-client-1.6.6-master/spec/resource_spec.rb +134 -0
  41. data/lib/rest-client-1.6.6-master/spec/response_spec.rb +169 -0
  42. data/lib/rest-client-1.6.6-master/spec/restclient_spec.rb +73 -0
  43. data/lib/slop-2.3.1/.gemtest +0 -0
  44. data/lib/slop-2.3.1/.gitignore +6 -0
  45. data/lib/slop-2.3.1/.yardopts +6 -0
  46. data/lib/slop-2.3.1/CHANGES.md +137 -0
  47. data/lib/slop-2.3.1/LICENSE +20 -0
  48. data/lib/slop-2.3.1/README.md +293 -0
  49. data/lib/slop-2.3.1/Rakefile +6 -0
  50. data/lib/slop-2.3.1/lib/slop.rb +1022 -0
  51. data/lib/slop-2.3.1/slop.gemspec +11 -0
  52. data/lib/slop-2.3.1/test/commands_test.rb +151 -0
  53. data/lib/slop-2.3.1/test/helper.rb +13 -0
  54. data/lib/slop-2.3.1/test/option_test.rb +198 -0
  55. data/lib/slop-2.3.1/test/slop_test.rb +574 -0
  56. data/lib/smartcloud.rb +186 -116
  57. data/lib/terminal-table-1.4.4/History.rdoc +53 -0
  58. data/lib/terminal-table-1.4.4/Manifest +24 -0
  59. data/lib/terminal-table-1.4.4/README.rdoc +240 -0
  60. data/lib/terminal-table-1.4.4/Rakefile +15 -0
  61. data/lib/terminal-table-1.4.4/Todo.rdoc +14 -0
  62. data/lib/terminal-table-1.4.4/examples/examples.rb +80 -0
  63. data/lib/terminal-table-1.4.4/lib/terminal-table/cell.rb +88 -0
  64. data/lib/terminal-table-1.4.4/lib/terminal-table/core_ext.rb +8 -0
  65. data/lib/terminal-table-1.4.4/lib/terminal-table/import.rb +4 -0
  66. data/lib/terminal-table-1.4.4/lib/terminal-table/row.rb +48 -0
  67. data/lib/terminal-table-1.4.4/lib/terminal-table/separator.rb +14 -0
  68. data/lib/terminal-table-1.4.4/lib/terminal-table/style.rb +61 -0
  69. data/lib/terminal-table-1.4.4/lib/terminal-table/table.rb +217 -0
  70. data/lib/terminal-table-1.4.4/lib/terminal-table/table_helper.rb +9 -0
  71. data/lib/terminal-table-1.4.4/lib/terminal-table/version.rb +6 -0
  72. data/lib/terminal-table-1.4.4/lib/terminal-table.rb +27 -0
  73. data/lib/terminal-table-1.4.4/spec/cell_spec.rb +54 -0
  74. data/lib/terminal-table-1.4.4/spec/core_ext_spec.rb +18 -0
  75. data/lib/terminal-table-1.4.4/spec/import_spec.rb +11 -0
  76. data/lib/terminal-table-1.4.4/spec/spec.opts +1 -0
  77. data/lib/terminal-table-1.4.4/spec/spec_helper.rb +8 -0
  78. data/lib/terminal-table-1.4.4/spec/table_spec.rb +525 -0
  79. data/lib/terminal-table-1.4.4/tasks/docs.rake +13 -0
  80. data/lib/terminal-table-1.4.4/tasks/gemspec.rake +3 -0
  81. data/lib/terminal-table-1.4.4/tasks/spec.rake +25 -0
  82. data/lib/terminal-table-1.4.4/terminal-table.gemspec +30 -0
  83. data/responses/addresses +26 -0
  84. data/responses/addresses.blank +2 -0
  85. data/responses/instances +74 -0
  86. data/responses/keys +33 -0
  87. data/responses/locations +142 -0
  88. data/responses/offerings_image +3780 -0
  89. data/responses/storage +379 -0
  90. metadata +86 -22
  91. data/README.rdoc +0 -75
  92. data/lib/rest-client-1.6.3/VERSION +0 -1
  93. data/lib/rest-client-1.6.3/lib/restclient/net_http_ext.rb +0 -21
@@ -0,0 +1,74 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2
+ <ns2:DescribeInstancesResponse xmlns:ns2="http://www.ibm.com/xmlns/b2b/cloud/api/2010-03-31">
3
+
4
+ <Instance>
5
+ <ID>149523</ID>
6
+ <Location>82</Location>
7
+ <RequestID name="biginsights-lite-rhel-5.5-64">
8
+ 149823</RequestID>
9
+ <Name>biginsights-lite-rhel-5.5-64</Name>
10
+ <Owner>ibmcloud@cohesiveft.com</Owner>
11
+ <ImageID>20014047</ImageID>
12
+ <InstanceType>COP64.2/4096/60</InstanceType>
13
+ <KeyName>biginsights</KeyName>
14
+ <Hostname>vhost0177.dc1.co.us.compute.ihost.com</Hostname>
15
+ <IP>170.225.96.177</IP>
16
+ <PrimaryIP>
17
+ <Type>DYNAMIC</Type>
18
+ <IP>170.225.96.177</IP>
19
+ <Hostname>vhost0177.dc1.co.us.compute.ihost.com</Hostname>
20
+ </PrimaryIP>
21
+ <Status>5</Status>
22
+ <LaunchTime>2011-10-31T18:22:43.475Z</LaunchTime>
23
+ <ExpirationTime>2013-10-30T18:22:58.887Z</ExpirationTime>
24
+ <ProductCodes />
25
+ <Volumes>
26
+ <Volume>20498</Volume>
27
+ </Volumes>
28
+ <Software>
29
+ <Application>
30
+ <Name>Red Hat Enterprise Linux</Name>
31
+ <Version>5.5</Version>
32
+ <Type>OS</Type>
33
+ </Application>
34
+ </Software>
35
+ <Volume>20498</Volume>
36
+ <DiskSize>60</DiskSize>
37
+ <MiniEphemeral>true</MiniEphemeral>
38
+ </Instance>
39
+ <Instance>
40
+ <ID>149524</ID>
41
+ <Location>82</Location>
42
+ <RequestID name="biginsights-enterprise-rhel-5.5-64">
43
+ 149824</RequestID>
44
+ <Name>biginsights-enterprise-rhel-5.5-64</Name>
45
+ <Owner>ibmcloud@cohesiveft.com</Owner>
46
+ <ImageID>20014047</ImageID>
47
+ <InstanceType>COP64.2/4096/60</InstanceType>
48
+ <KeyName>biginsights</KeyName>
49
+ <Hostname>vhost0210.dc1.co.us.compute.ihost.com</Hostname>
50
+ <IP>170.225.96.210</IP>
51
+ <PrimaryIP>
52
+ <Type>DYNAMIC</Type>
53
+ <IP>170.225.96.210</IP>
54
+ <Hostname>vhost0210.dc1.co.us.compute.ihost.com</Hostname>
55
+ </PrimaryIP>
56
+ <Status>5</Status>
57
+ <LaunchTime>2011-10-31T18:22:49.186Z</LaunchTime>
58
+ <ExpirationTime>2013-10-30T18:22:58.899Z</ExpirationTime>
59
+ <ProductCodes />
60
+ <Volumes>
61
+ <Volume>20502</Volume>
62
+ </Volumes>
63
+ <Software>
64
+ <Application>
65
+ <Name>Red Hat Enterprise Linux</Name>
66
+ <Version>5.5</Version>
67
+ <Type>OS</Type>
68
+ </Application>
69
+ </Software>
70
+ <Volume>20502</Volume>
71
+ <DiskSize>60</DiskSize>
72
+ <MiniEphemeral>true</MiniEphemeral>
73
+ </Instance>
74
+ </ns2:DescribeInstancesResponse>
data/responses/keys ADDED
@@ -0,0 +1,33 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2
+ <ns2:DescribeKeysResponse xmlns:ns2="http://www.ibm.com/xmlns/b2b/cloud/api/2010-03-31">
3
+
4
+ <PublicKey>
5
+ <KeyName>test-key</KeyName>
6
+ <KeyMaterial>
7
+ AAAAB3NzaC1yc2EAAAADAQABAAABAQDdfm2GzxMPg4rRln90QDXUovgAPi41OuKvhViEcrxUISK4brqkUosgudOsKmCbx4h8TINuC3yznxl+HsNQG+qCkXsMlbS8EemC9HW17FwpUDAByjCSQb1RCE8ynng0VKPaiZkAstLTZtwudBuLMcBNde9sc03zsOD5ukLnQbjwqiJAS0ur/nASj94C/HtymoxWao3Vf2RmRD6G21iTcMN9sij34V6ZIsgHz8un/7JktNAfsEowTAXY8fcro9OC0Eim9juSeJz7cA4dlLSsAgYhu0Ppc0t9+N+Oxb1HYHViyxMfe5btco0Tpqxf1OhTJj5tAQwCdr0frkD0TO7gXn+7</KeyMaterial>
8
+ <Default>false</Default>
9
+ <LastModifiedTime>2011-11-16T19:38:05.540Z</LastModifiedTime>
10
+ <Instances />
11
+ </PublicKey>
12
+ <PublicKey>
13
+ <KeyName>foobar</KeyName>
14
+ <KeyMaterial>
15
+ AAAAB3NzaC1yc2EAAAADAQABAAABAQDj3SWgw3YFfAn1PcPtBpMrbp9oBEgdfB1EyT5ksgiiZ3TEM9zctJEFx4ZZ1iNTCXqXYNSd83VCGvFoJAijc2WybuegWNDT/wkvAKWTxEqPNEieebJLv8XPcVU5bRSgpXpmqR29cYki+ztJt3y/fpbzmw+lTGIW0PHdYnstmm2Q4DquDSzO+5Q2xkP1T9FORT21wqw6kxYCLmt8P0eT7KXRoZd/eI/cMoHlTb+tMIsjPCGjIZdYSb0264Zihx6JGkuh8TMhlNaDxxs9G7qtvA7s40u0YMKle9+kB7PCbkVIbWtV6UIfaertoGhHfvz+HgltXVMI0Rm0O+Zb+iZDg1kH</KeyMaterial>
16
+ <Default>false</Default>
17
+ <LastModifiedTime>2011-11-16T23:00:36.292Z</LastModifiedTime>
18
+ <Instances>
19
+ <InstanceID>12345</InstanceID>
20
+ </Instances>
21
+ </PublicKey>
22
+ <PublicKey>
23
+ <KeyName>yp-testkey</KeyName>
24
+ <KeyMaterial>
25
+ AAAAB3NzaC1yc2EAAAADAQABAAABAQCOr57S//Pu2ScCabzzEVu/LaPh71exKoQ7b9MLBkt0CiOxILoRkEqgnvua88VbCJxfELJcrAwnaYfHyPMHqV1//EZCyyNWptsOFhZe44xUUMClZdJxRwC/nmE1/5e+uJu2eVo1uMhb9Hlv4g0OJ0Aj9ygzOFJlWZoZpKgXNNjobvUTV+uV1xG/V7Iq3Z30HpOGqQDOj8JCjyORK+X3DRZqItoDuzCWlgCT5HN3FWaDmA/gquEOb+2YcXLkz4Voz7b11bWCf4nLFuX0MSRvUNsL8XBTVwaJIdPEi5L+bG2FfmCayxZchfeM/YTF5Z2/Mtq2I3aBoWHGE46DmGDWh6zH</KeyMaterial>
26
+ <Default>false</Default>
27
+ <LastModifiedTime>2011-11-17T00:31:13.973Z</LastModifiedTime>
28
+ <Instances>
29
+ <InstanceID>22904</InstanceID>
30
+ <InstanceID>22905</InstanceID>
31
+ </Instances>
32
+ </PublicKey>
33
+ </ns2:DescribeKeysResponse>
@@ -0,0 +1,142 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2
+ <ns2:DescribeLocationsResponse xmlns:ns2="http://www.ibm.com/xmlns/b2b/cloud/api/2010-03-31">
3
+
4
+ <Location>
5
+ <ID>41</ID>
6
+ <Name>Raleigh, U.S.A</Name>
7
+ <Description>This data center is located in Raleigh, North
8
+ Carolina, U.S.A. The services provided are: Guest Instances,
9
+ Image Capture, Persistent Storage, Reserved IP, Private
10
+ VLAN/VPN.</Description>
11
+ <Location>RTP</Location>
12
+ <Capabilities>
13
+ <Capability id="oss.storage.format">
14
+ <Entry key="EXT3">
15
+ <Value>ext3</Value>
16
+ </Entry>
17
+ <Entry key="RAW">
18
+ <Value>raw</Value>
19
+ </Entry>
20
+ </Capability>
21
+ <Capability id="oss.instance.spec.i386" />
22
+ <Capability id="oss.instance.spec.x86_64" />
23
+ <Capability id="oss.storage.availabilityarea" />
24
+ </Capabilities>
25
+ <State>1</State>
26
+ </Location>
27
+ <Location>
28
+ <ID>61</ID>
29
+ <Name>Ehningen, Germany</Name>
30
+ <Description>This data center is located in Ehningen(near
31
+ Baden-Wurttemberg), Germany. The services provided are: Guest
32
+ Instances, Image Capture, Persistent Storage, Reserved IP,
33
+ Private VLAN/VPN.</Description>
34
+ <Location>EHN</Location>
35
+ <Capabilities>
36
+ <Capability id="oss.storage.format">
37
+ <Entry key="EXT3">
38
+ <Value>ext3</Value>
39
+ </Entry>
40
+ <Entry key="RAW">
41
+ <Value>raw</Value>
42
+ </Entry>
43
+ </Capability>
44
+ <Capability id="oss.instance.spec.i386" />
45
+ <Capability id="oss.instance.spec.x86_64" />
46
+ <Capability id="oss.storage.availabilityarea" />
47
+ </Capabilities>
48
+ <State>1</State>
49
+ </Location>
50
+ <Location>
51
+ <ID>82</ID>
52
+ <Name>Boulder1, U.S.A</Name>
53
+ <Description>This data center is located in Boulder(near
54
+ Denver), Colorado, U.S.A. The services provided are: Guest
55
+ Instances, Image Capture, Persistent Storage, Reserved IP,
56
+ Private VLAN/VPN.</Description>
57
+ <Location>us-co-dc1</Location>
58
+ <Capabilities>
59
+ <Capability id="oss.storage.format">
60
+ <Entry key="EXT3">
61
+ <Value>ext3</Value>
62
+ </Entry>
63
+ <Entry key="RAW">
64
+ <Value>raw</Value>
65
+ </Entry>
66
+ </Capability>
67
+ <Capability id="oss.instance.spec.i386" />
68
+ <Capability id="oss.instance.spec.x86_64" />
69
+ <Capability id="oss.storage.availabilityarea" />
70
+ </Capabilities>
71
+ <State>1</State>
72
+ </Location>
73
+ <Location>
74
+ <ID>101</ID>
75
+ <Name>Markham, Canada</Name>
76
+ <Description>This data center is located in Markham(near
77
+ Toronto), Ontario, Canada. The services provided are: Guest
78
+ Instances, Image Capture, Persistent Storage, Reserved IP,
79
+ Private VLAN/VPN.</Description>
80
+ <Location>ca-on-dc1</Location>
81
+ <Capabilities>
82
+ <Capability id="oss.storage.format">
83
+ <Entry key="EXT3">
84
+ <Value>ext3</Value>
85
+ </Entry>
86
+ <Entry key="RAW">
87
+ <Value>raw</Value>
88
+ </Entry>
89
+ </Capability>
90
+ <Capability id="oss.instance.spec.i386" />
91
+ <Capability id="oss.instance.spec.x86_64" />
92
+ <Capability id="oss.storage.availabilityarea" />
93
+ </Capabilities>
94
+ <State>1</State>
95
+ </Location>
96
+ <Location>
97
+ <ID>121</ID>
98
+ <Name>Makuhari, Japan</Name>
99
+ <Description>This data center is located in Makuhari(near
100
+ Tokoyo), Japan. The services provided are: Guest Instances,
101
+ Image Capture, Persistent Storage, Reserved IP, Private
102
+ VLAN/VPN.</Description>
103
+ <Location>ap-jp-dc1</Location>
104
+ <Capabilities>
105
+ <Capability id="oss.storage.format">
106
+ <Entry key="EXT3">
107
+ <Value>ext3</Value>
108
+ </Entry>
109
+ <Entry key="RAW">
110
+ <Value>raw</Value>
111
+ </Entry>
112
+ </Capability>
113
+ <Capability id="oss.instance.spec.i386" />
114
+ <Capability id="oss.instance.spec.x86_64" />
115
+ <Capability id="oss.storage.availabilityarea" />
116
+ </Capabilities>
117
+ <State>1</State>
118
+ </Location>
119
+ <Location>
120
+ <ID>141</ID>
121
+ <Name>Singapore, Singapore</Name>
122
+ <Description>This data center is located in Singapore. The
123
+ services provided are: Guest Instances, Image Capture,
124
+ Persistent Storage, Reserved IP, Private
125
+ VLAN/VPN.</Description>
126
+ <Location>ap-sg-dc1</Location>
127
+ <Capabilities>
128
+ <Capability id="oss.storage.format">
129
+ <Entry key="EXT3">
130
+ <Value>ext3</Value>
131
+ </Entry>
132
+ <Entry key="RAW">
133
+ <Value>raw</Value>
134
+ </Entry>
135
+ </Capability>
136
+ <Capability id="oss.instance.spec.i386" />
137
+ <Capability id="oss.instance.spec.x86_64" />
138
+ <Capability id="oss.storage.availabilityarea" />
139
+ </Capabilities>
140
+ <State>1</State>
141
+ </Location>
142
+ </ns2:DescribeLocationsResponse>