cft_smartcloud 0.1.5 → 0.1.8
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.
- data/CHANGELOG +9 -0
- data/VERSION +1 -1
- data/cft_smartcloud.gemspec +2 -91
- data/lib/smartcloud.rb +30 -47
- metadata +3 -92
- data/lib/cli_tools/README.txt +0 -50
- data/lib/cli_tools/ic-add-keypair.cmd +0 -29
- data/lib/cli_tools/ic-add-keypair.sh +0 -15
- data/lib/cli_tools/ic-allocate-address.cmd +0 -29
- data/lib/cli_tools/ic-allocate-address.sh +0 -14
- data/lib/cli_tools/ic-attach-volume.cmd +0 -27
- data/lib/cli_tools/ic-attach-volume.sh +0 -27
- data/lib/cli_tools/ic-clone-image.cmd +0 -27
- data/lib/cli_tools/ic-clone-image.sh +0 -14
- data/lib/cli_tools/ic-clone-volume.cmd +0 -27
- data/lib/cli_tools/ic-clone-volume.sh +0 -60
- data/lib/cli_tools/ic-cmd.cmd +0 -41
- data/lib/cli_tools/ic-cmd.sh +0 -38
- data/lib/cli_tools/ic-create-instance.cmd +0 -27
- data/lib/cli_tools/ic-create-instance.sh +0 -14
- data/lib/cli_tools/ic-create-password.cmd +0 -27
- data/lib/cli_tools/ic-create-password.sh +0 -14
- data/lib/cli_tools/ic-create-volume.cmd +0 -27
- data/lib/cli_tools/ic-create-volume.sh +0 -14
- data/lib/cli_tools/ic-delete-image.cmd +0 -27
- data/lib/cli_tools/ic-delete-image.sh +0 -14
- data/lib/cli_tools/ic-delete-instance.cmd +0 -27
- data/lib/cli_tools/ic-delete-instance.sh +0 -14
- data/lib/cli_tools/ic-delete-volume.cmd +0 -27
- data/lib/cli_tools/ic-delete-volume.sh +0 -14
- data/lib/cli_tools/ic-describe-address-offerings.cmd +0 -27
- data/lib/cli_tools/ic-describe-address-offerings.sh +0 -14
- data/lib/cli_tools/ic-describe-addresses.cmd +0 -27
- data/lib/cli_tools/ic-describe-addresses.sh +0 -14
- data/lib/cli_tools/ic-describe-image-agreement.cmd +0 -27
- data/lib/cli_tools/ic-describe-image-agreement.sh +0 -14
- data/lib/cli_tools/ic-describe-image.cmd +0 -27
- data/lib/cli_tools/ic-describe-image.sh +0 -14
- data/lib/cli_tools/ic-describe-images.cmd +0 -27
- data/lib/cli_tools/ic-describe-images.sh +0 -14
- data/lib/cli_tools/ic-describe-instance.cmd +0 -27
- data/lib/cli_tools/ic-describe-instance.sh +0 -14
- data/lib/cli_tools/ic-describe-instances.cmd +0 -27
- data/lib/cli_tools/ic-describe-instances.sh +0 -14
- data/lib/cli_tools/ic-describe-keypair.cmd +0 -27
- data/lib/cli_tools/ic-describe-keypair.sh +0 -14
- data/lib/cli_tools/ic-describe-keypairs.cmd +0 -27
- data/lib/cli_tools/ic-describe-keypairs.sh +0 -14
- data/lib/cli_tools/ic-describe-location.cmd +0 -14
- data/lib/cli_tools/ic-describe-location.sh +0 -14
- data/lib/cli_tools/ic-describe-locations.cmd +0 -14
- data/lib/cli_tools/ic-describe-locations.sh +0 -14
- data/lib/cli_tools/ic-describe-request.cmd +0 -27
- data/lib/cli_tools/ic-describe-request.sh +0 -14
- data/lib/cli_tools/ic-describe-vlans.cmd +0 -27
- data/lib/cli_tools/ic-describe-vlans.sh +0 -14
- data/lib/cli_tools/ic-describe-volume-offerings.cmd +0 -27
- data/lib/cli_tools/ic-describe-volume-offerings.sh +0 -14
- data/lib/cli_tools/ic-describe-volume.cmd +0 -27
- data/lib/cli_tools/ic-describe-volume.sh +0 -14
- data/lib/cli_tools/ic-describe-volumes.cmd +0 -27
- data/lib/cli_tools/ic-describe-volumes.sh +0 -14
- data/lib/cli_tools/ic-detach-volume.cmd +0 -27
- data/lib/cli_tools/ic-detach-volume.sh +0 -27
- data/lib/cli_tools/ic-extend-reservation.cmd +0 -27
- data/lib/cli_tools/ic-extend-reservation.sh +0 -14
- data/lib/cli_tools/ic-generate-keypair.cmd +0 -27
- data/lib/cli_tools/ic-generate-keypair.sh +0 -14
- data/lib/cli_tools/ic-release-address.cmd +0 -27
- data/lib/cli_tools/ic-release-address.sh +0 -14
- data/lib/cli_tools/ic-remove-keypair.cmd +0 -27
- data/lib/cli_tools/ic-remove-keypair.sh +0 -14
- data/lib/cli_tools/ic-restart-instance.cmd +0 -27
- data/lib/cli_tools/ic-restart-instance.sh +0 -14
- data/lib/cli_tools/ic-save-instance.cmd +0 -27
- data/lib/cli_tools/ic-save-instance.sh +0 -14
- data/lib/cli_tools/ic-set-default-key.cmd +0 -27
- data/lib/cli_tools/ic-set-default-key.sh +0 -14
- data/lib/cli_tools/ic-update-instance.cmd +0 -27
- data/lib/cli_tools/ic-update-instance.sh +0 -14
- data/lib/cli_tools/ic-update-keypair.cmd +0 -27
- data/lib/cli_tools/ic-update-keypair.sh +0 -14
- data/lib/cli_tools/lib/DeveloperCloud_API_Client_JAR.jar +0 -0
- data/lib/cli_tools/lib/DeveloperCloud_CMD_Tool.jar +0 -0
- data/lib/cli_tools/lib/commons-beanutils-1.6.1.jar +0 -0
- data/lib/cli_tools/lib/commons-cli-1.2.jar +0 -0
- data/lib/cli_tools/lib/commons-codec-1.3.jar +0 -0
- data/lib/cli_tools/lib/commons-collections-3.2.1.jar +0 -0
- data/lib/cli_tools/lib/commons-digester-1.8.jar +0 -0
- data/lib/cli_tools/lib/commons-httpclient-3.1.jar +0 -0
- data/lib/cli_tools/lib/commons-lang-2.3.jar +0 -0
- data/lib/cli_tools/lib/commons-logging-1.1.1.jar +0 -0
- data/lib/cli_tools/logging.properties +0 -7
- data/lib/cli_tools/manifest.rmd +0 -26
data/CHANGELOG
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
2011-08-09 0.1.8:
|
|
2
|
+
* Updated create_instance to return the Instance object rather
|
|
3
|
+
than the xml request, for consistency with describe_instance
|
|
4
|
+
* Improved help system, especially for create_instance
|
|
5
|
+
|
|
6
|
+
2011-08-05 0.1.6:
|
|
7
|
+
* clone volume changed to api call instead of CLI
|
|
8
|
+
* support for deleting multiple volumes at once (delete_volumes)
|
|
9
|
+
|
|
1
10
|
2011-07-25 0.1.4:
|
|
2
11
|
* Better display of launch times
|
|
3
12
|
* delete_unused_keys function deletes all unused keys, prompting for each one
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.8
|
data/cft_smartcloud.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{cft_smartcloud}
|
|
8
|
-
s.version = "0.1.
|
|
8
|
+
s.version = "0.1.8"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["yan", "cohesive"]
|
|
12
|
-
s.date = %q{2011-
|
|
12
|
+
s.date = %q{2011-08-10}
|
|
13
13
|
s.description = %q{CohesiveFT Ruby Interface for IBM SmartCloud and 'smartcloud' command line helper.}
|
|
14
14
|
s.email = %q{yan.pritzker@cohesiveft.com}
|
|
15
15
|
s.executables = ["cft_smartcloud", "smartcloud"]
|
|
@@ -27,95 +27,6 @@ Gem::Specification.new do |s|
|
|
|
27
27
|
"bin/cft_smartcloud",
|
|
28
28
|
"bin/smartcloud",
|
|
29
29
|
"cft_smartcloud.gemspec",
|
|
30
|
-
"lib/cli_tools/README.txt",
|
|
31
|
-
"lib/cli_tools/ic-add-keypair.cmd",
|
|
32
|
-
"lib/cli_tools/ic-add-keypair.sh",
|
|
33
|
-
"lib/cli_tools/ic-allocate-address.cmd",
|
|
34
|
-
"lib/cli_tools/ic-allocate-address.sh",
|
|
35
|
-
"lib/cli_tools/ic-attach-volume.cmd",
|
|
36
|
-
"lib/cli_tools/ic-attach-volume.sh",
|
|
37
|
-
"lib/cli_tools/ic-clone-image.cmd",
|
|
38
|
-
"lib/cli_tools/ic-clone-image.sh",
|
|
39
|
-
"lib/cli_tools/ic-clone-volume.cmd",
|
|
40
|
-
"lib/cli_tools/ic-clone-volume.sh",
|
|
41
|
-
"lib/cli_tools/ic-cmd.cmd",
|
|
42
|
-
"lib/cli_tools/ic-cmd.sh",
|
|
43
|
-
"lib/cli_tools/ic-create-instance.cmd",
|
|
44
|
-
"lib/cli_tools/ic-create-instance.sh",
|
|
45
|
-
"lib/cli_tools/ic-create-password.cmd",
|
|
46
|
-
"lib/cli_tools/ic-create-password.sh",
|
|
47
|
-
"lib/cli_tools/ic-create-volume.cmd",
|
|
48
|
-
"lib/cli_tools/ic-create-volume.sh",
|
|
49
|
-
"lib/cli_tools/ic-delete-image.cmd",
|
|
50
|
-
"lib/cli_tools/ic-delete-image.sh",
|
|
51
|
-
"lib/cli_tools/ic-delete-instance.cmd",
|
|
52
|
-
"lib/cli_tools/ic-delete-instance.sh",
|
|
53
|
-
"lib/cli_tools/ic-delete-volume.cmd",
|
|
54
|
-
"lib/cli_tools/ic-delete-volume.sh",
|
|
55
|
-
"lib/cli_tools/ic-describe-address-offerings.cmd",
|
|
56
|
-
"lib/cli_tools/ic-describe-address-offerings.sh",
|
|
57
|
-
"lib/cli_tools/ic-describe-addresses.cmd",
|
|
58
|
-
"lib/cli_tools/ic-describe-addresses.sh",
|
|
59
|
-
"lib/cli_tools/ic-describe-image-agreement.cmd",
|
|
60
|
-
"lib/cli_tools/ic-describe-image-agreement.sh",
|
|
61
|
-
"lib/cli_tools/ic-describe-image.cmd",
|
|
62
|
-
"lib/cli_tools/ic-describe-image.sh",
|
|
63
|
-
"lib/cli_tools/ic-describe-images.cmd",
|
|
64
|
-
"lib/cli_tools/ic-describe-images.sh",
|
|
65
|
-
"lib/cli_tools/ic-describe-instance.cmd",
|
|
66
|
-
"lib/cli_tools/ic-describe-instance.sh",
|
|
67
|
-
"lib/cli_tools/ic-describe-instances.cmd",
|
|
68
|
-
"lib/cli_tools/ic-describe-instances.sh",
|
|
69
|
-
"lib/cli_tools/ic-describe-keypair.cmd",
|
|
70
|
-
"lib/cli_tools/ic-describe-keypair.sh",
|
|
71
|
-
"lib/cli_tools/ic-describe-keypairs.cmd",
|
|
72
|
-
"lib/cli_tools/ic-describe-keypairs.sh",
|
|
73
|
-
"lib/cli_tools/ic-describe-location.cmd",
|
|
74
|
-
"lib/cli_tools/ic-describe-location.sh",
|
|
75
|
-
"lib/cli_tools/ic-describe-locations.cmd",
|
|
76
|
-
"lib/cli_tools/ic-describe-locations.sh",
|
|
77
|
-
"lib/cli_tools/ic-describe-request.cmd",
|
|
78
|
-
"lib/cli_tools/ic-describe-request.sh",
|
|
79
|
-
"lib/cli_tools/ic-describe-vlans.cmd",
|
|
80
|
-
"lib/cli_tools/ic-describe-vlans.sh",
|
|
81
|
-
"lib/cli_tools/ic-describe-volume-offerings.cmd",
|
|
82
|
-
"lib/cli_tools/ic-describe-volume-offerings.sh",
|
|
83
|
-
"lib/cli_tools/ic-describe-volume.cmd",
|
|
84
|
-
"lib/cli_tools/ic-describe-volume.sh",
|
|
85
|
-
"lib/cli_tools/ic-describe-volumes.cmd",
|
|
86
|
-
"lib/cli_tools/ic-describe-volumes.sh",
|
|
87
|
-
"lib/cli_tools/ic-detach-volume.cmd",
|
|
88
|
-
"lib/cli_tools/ic-detach-volume.sh",
|
|
89
|
-
"lib/cli_tools/ic-extend-reservation.cmd",
|
|
90
|
-
"lib/cli_tools/ic-extend-reservation.sh",
|
|
91
|
-
"lib/cli_tools/ic-generate-keypair.cmd",
|
|
92
|
-
"lib/cli_tools/ic-generate-keypair.sh",
|
|
93
|
-
"lib/cli_tools/ic-release-address.cmd",
|
|
94
|
-
"lib/cli_tools/ic-release-address.sh",
|
|
95
|
-
"lib/cli_tools/ic-remove-keypair.cmd",
|
|
96
|
-
"lib/cli_tools/ic-remove-keypair.sh",
|
|
97
|
-
"lib/cli_tools/ic-restart-instance.cmd",
|
|
98
|
-
"lib/cli_tools/ic-restart-instance.sh",
|
|
99
|
-
"lib/cli_tools/ic-save-instance.cmd",
|
|
100
|
-
"lib/cli_tools/ic-save-instance.sh",
|
|
101
|
-
"lib/cli_tools/ic-set-default-key.cmd",
|
|
102
|
-
"lib/cli_tools/ic-set-default-key.sh",
|
|
103
|
-
"lib/cli_tools/ic-update-instance.cmd",
|
|
104
|
-
"lib/cli_tools/ic-update-instance.sh",
|
|
105
|
-
"lib/cli_tools/ic-update-keypair.cmd",
|
|
106
|
-
"lib/cli_tools/ic-update-keypair.sh",
|
|
107
|
-
"lib/cli_tools/lib/DeveloperCloud_API_Client_JAR.jar",
|
|
108
|
-
"lib/cli_tools/lib/DeveloperCloud_CMD_Tool.jar",
|
|
109
|
-
"lib/cli_tools/lib/commons-beanutils-1.6.1.jar",
|
|
110
|
-
"lib/cli_tools/lib/commons-cli-1.2.jar",
|
|
111
|
-
"lib/cli_tools/lib/commons-codec-1.3.jar",
|
|
112
|
-
"lib/cli_tools/lib/commons-collections-3.2.1.jar",
|
|
113
|
-
"lib/cli_tools/lib/commons-digester-1.8.jar",
|
|
114
|
-
"lib/cli_tools/lib/commons-httpclient-3.1.jar",
|
|
115
|
-
"lib/cli_tools/lib/commons-lang-2.3.jar",
|
|
116
|
-
"lib/cli_tools/lib/commons-logging-1.1.1.jar",
|
|
117
|
-
"lib/cli_tools/logging.properties",
|
|
118
|
-
"lib/cli_tools/manifest.rmd",
|
|
119
30
|
"lib/config/config.yml",
|
|
120
31
|
"lib/hash_fix.rb",
|
|
121
32
|
"lib/mime-types-1.16/History.txt",
|
data/lib/smartcloud.rb
CHANGED
|
@@ -23,8 +23,6 @@ require 'hash_fix'
|
|
|
23
23
|
require 'xmlsimple'
|
|
24
24
|
require 'smartcloud_logger'
|
|
25
25
|
|
|
26
|
-
IBM_TOOLS_HOME=File.join(File.dirname(__FILE__), "cli_tools") unless defined?(IBM_TOOLS_HOME)
|
|
27
|
-
|
|
28
26
|
# Encapsulates communications with IBM SmartCloud via REST
|
|
29
27
|
class IBMSmartCloud
|
|
30
28
|
|
|
@@ -49,17 +47,24 @@ class IBMSmartCloud
|
|
|
49
47
|
class << self
|
|
50
48
|
@config = YAML.load_file(File.join(File.dirname(__FILE__), "config/config.yml"))
|
|
51
49
|
attr_reader :method_help
|
|
50
|
+
attr_reader :method_help_supplemental
|
|
52
51
|
attr_reader :config
|
|
53
52
|
end
|
|
54
53
|
|
|
55
|
-
def self.args(method, args)
|
|
54
|
+
def self.args(method, args, extra_help={})
|
|
56
55
|
@method_help||={}
|
|
56
|
+
@method_help_supplemental||={}
|
|
57
57
|
@method_help[method.to_s] = args
|
|
58
|
+
@method_help_supplemental[method.to_s] = extra_help
|
|
58
59
|
end
|
|
59
60
|
|
|
60
61
|
def help(method=nil)
|
|
61
62
|
if method
|
|
62
63
|
args = (self.class.method_help[method.to_s])
|
|
64
|
+
if !(self.respond_to?(method))
|
|
65
|
+
return "Sorry, I don't know method: #{method}"
|
|
66
|
+
end
|
|
67
|
+
|
|
63
68
|
if args.nil?
|
|
64
69
|
puts method.to_s
|
|
65
70
|
else
|
|
@@ -80,7 +85,9 @@ class IBMSmartCloud
|
|
|
80
85
|
end
|
|
81
86
|
end.join(", ")
|
|
82
87
|
|
|
83
|
-
|
|
88
|
+
extra_help = self.class.method_help_supplemental[method.to_s] || ""
|
|
89
|
+
|
|
90
|
+
puts "#{method.to_s}(#{args})\n#{extra_help}"
|
|
84
91
|
end
|
|
85
92
|
else
|
|
86
93
|
methods = public_methods - Object.public_methods - ['post','get','put','delete','logger','logger=','help']
|
|
@@ -102,7 +109,12 @@ class IBMSmartCloud
|
|
|
102
109
|
# CLI-style attribute naming. I.e. "image-id" or "data-center"
|
|
103
110
|
# or API-style (imageID, location). If the CLI-style params are
|
|
104
111
|
# provided, they will be remapped to the correct API params.
|
|
105
|
-
args :create_instance, [:instance_params_hash]
|
|
112
|
+
args :create_instance, [:instance_params_hash], %{
|
|
113
|
+
Available hash keys: :name, :imageID, :instanceType, :location, :publicKey, :ip, :volumeID,
|
|
114
|
+
:ConfigurationData, :vlanID, :antiCollocationInstance, :isMiniEphemeral
|
|
115
|
+
|
|
116
|
+
Example: smartcloud "create_instance(:name => 'MyTest', :instanceType=>'COP32.1/2048/60', ...)"
|
|
117
|
+
}
|
|
106
118
|
def create_instance(instance_params)
|
|
107
119
|
param_remap = { "name" => "name",
|
|
108
120
|
"image-id" => "imageID",
|
|
@@ -134,7 +146,8 @@ class IBMSmartCloud
|
|
|
134
146
|
config_data_params.each {|k,v| instance_params[k]=v} # add it into the standard instance params array
|
|
135
147
|
end
|
|
136
148
|
|
|
137
|
-
post "/instances", instance_params, param_remap
|
|
149
|
+
result = post "/instances", instance_params, param_remap
|
|
150
|
+
result.Instance
|
|
138
151
|
end
|
|
139
152
|
|
|
140
153
|
# Find a location by its name. Assumes locations have unique names (not verified by ibm docs)
|
|
@@ -184,12 +197,12 @@ class IBMSmartCloud
|
|
|
184
197
|
# TODO: the API call does not work, we have to use the cli for now
|
|
185
198
|
args :clone_volume, [:name, :source_disk_id]
|
|
186
199
|
def clone_volume(name, source_disk_id)
|
|
187
|
-
|
|
188
|
-
#
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
result
|
|
192
|
-
|
|
200
|
+
original_disk = describe_volume(source_disk_id)
|
|
201
|
+
logger.info "Looking up volume #{source_disk_id} to prepare for cloning..."
|
|
202
|
+
offering = describe_volume_offerings(original_disk.Location).detect {|offer| offer.ID == original_disk.OfferingID}
|
|
203
|
+
logger.info "Original volume size: #{offering.Name}"
|
|
204
|
+
result = post("/storage", :name => name, :SourceDiskID => source_disk_id, :format => original_disk.Format.upcase, :location => original_disk.Location, :size => offering.Name, :offeringID => original_disk.OfferingID )
|
|
205
|
+
result.Volume.ID
|
|
193
206
|
end
|
|
194
207
|
|
|
195
208
|
# Delete the volume
|
|
@@ -199,6 +212,11 @@ class IBMSmartCloud
|
|
|
199
212
|
true
|
|
200
213
|
end
|
|
201
214
|
|
|
215
|
+
args :delete_volumes, [:array_of_vol_ids]
|
|
216
|
+
def delete_volumes(vol_id_list)
|
|
217
|
+
vol_id_list.each {|vol| delete_volume(vol)}
|
|
218
|
+
end
|
|
219
|
+
|
|
202
220
|
# generates a keypair and returns the private key
|
|
203
221
|
args :generate_keypair, [:name]
|
|
204
222
|
def generate_keypair(name)
|
|
@@ -585,41 +603,6 @@ class IBMSmartCloud
|
|
|
585
603
|
array_or_object.is_a?(Array) ? array_or_object : [array_or_object]
|
|
586
604
|
end
|
|
587
605
|
|
|
588
|
-
# TODO: all methods below here can be nuked once CLI tools are removed
|
|
589
|
-
def run_ibm_tool(command)
|
|
590
|
-
cmd = "cd #{IBM_TOOLS_HOME} && ./#{command} -u #{@username} -w #{passphrase} -g #{password_file}"
|
|
591
|
-
logger.debug cmd
|
|
592
|
-
output = if @debug
|
|
593
|
-
IBMMockResponseGenerator.respond(command)
|
|
594
|
-
else
|
|
595
|
-
`#{cmd}`
|
|
596
|
-
end
|
|
597
|
-
|
|
598
|
-
logger.debug output
|
|
599
|
-
|
|
600
|
-
if output =~ /ErrorMessage : (.*)/
|
|
601
|
-
raise $1 # raise the error message matched above
|
|
602
|
-
else
|
|
603
|
-
return output
|
|
604
|
-
end
|
|
605
|
-
end
|
|
606
|
-
|
|
607
|
-
def create_password_file
|
|
608
|
-
# if no passphrase or password file is supplied, we'll generate it
|
|
609
|
-
run_ibm_tool("ic-create-password.sh -u #{@username} -p #{@password}")
|
|
610
|
-
end
|
|
611
|
-
|
|
612
|
-
def password_file
|
|
613
|
-
@password_file ||= "/tmp/smrtcloud-pwfile-#{Time.now.to_i.to_s}"
|
|
614
|
-
end
|
|
615
|
-
|
|
616
|
-
def passphrase
|
|
617
|
-
@passphrase ||= Time.now.to_i.to_s
|
|
618
|
-
end
|
|
619
|
-
# End CLI tool helpers
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
606
|
end
|
|
624
607
|
|
|
625
608
|
# predefine an instance for convenience
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 1
|
|
8
|
-
-
|
|
9
|
-
version: 0.1.
|
|
8
|
+
- 8
|
|
9
|
+
version: 0.1.8
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- yan
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-
|
|
18
|
+
date: 2011-08-10 00:00:00 -07:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies: []
|
|
21
21
|
|
|
@@ -39,95 +39,6 @@ files:
|
|
|
39
39
|
- bin/cft_smartcloud
|
|
40
40
|
- bin/smartcloud
|
|
41
41
|
- cft_smartcloud.gemspec
|
|
42
|
-
- lib/cli_tools/README.txt
|
|
43
|
-
- lib/cli_tools/ic-add-keypair.cmd
|
|
44
|
-
- lib/cli_tools/ic-add-keypair.sh
|
|
45
|
-
- lib/cli_tools/ic-allocate-address.cmd
|
|
46
|
-
- lib/cli_tools/ic-allocate-address.sh
|
|
47
|
-
- lib/cli_tools/ic-attach-volume.cmd
|
|
48
|
-
- lib/cli_tools/ic-attach-volume.sh
|
|
49
|
-
- lib/cli_tools/ic-clone-image.cmd
|
|
50
|
-
- lib/cli_tools/ic-clone-image.sh
|
|
51
|
-
- lib/cli_tools/ic-clone-volume.cmd
|
|
52
|
-
- lib/cli_tools/ic-clone-volume.sh
|
|
53
|
-
- lib/cli_tools/ic-cmd.cmd
|
|
54
|
-
- lib/cli_tools/ic-cmd.sh
|
|
55
|
-
- lib/cli_tools/ic-create-instance.cmd
|
|
56
|
-
- lib/cli_tools/ic-create-instance.sh
|
|
57
|
-
- lib/cli_tools/ic-create-password.cmd
|
|
58
|
-
- lib/cli_tools/ic-create-password.sh
|
|
59
|
-
- lib/cli_tools/ic-create-volume.cmd
|
|
60
|
-
- lib/cli_tools/ic-create-volume.sh
|
|
61
|
-
- lib/cli_tools/ic-delete-image.cmd
|
|
62
|
-
- lib/cli_tools/ic-delete-image.sh
|
|
63
|
-
- lib/cli_tools/ic-delete-instance.cmd
|
|
64
|
-
- lib/cli_tools/ic-delete-instance.sh
|
|
65
|
-
- lib/cli_tools/ic-delete-volume.cmd
|
|
66
|
-
- lib/cli_tools/ic-delete-volume.sh
|
|
67
|
-
- lib/cli_tools/ic-describe-address-offerings.cmd
|
|
68
|
-
- lib/cli_tools/ic-describe-address-offerings.sh
|
|
69
|
-
- lib/cli_tools/ic-describe-addresses.cmd
|
|
70
|
-
- lib/cli_tools/ic-describe-addresses.sh
|
|
71
|
-
- lib/cli_tools/ic-describe-image-agreement.cmd
|
|
72
|
-
- lib/cli_tools/ic-describe-image-agreement.sh
|
|
73
|
-
- lib/cli_tools/ic-describe-image.cmd
|
|
74
|
-
- lib/cli_tools/ic-describe-image.sh
|
|
75
|
-
- lib/cli_tools/ic-describe-images.cmd
|
|
76
|
-
- lib/cli_tools/ic-describe-images.sh
|
|
77
|
-
- lib/cli_tools/ic-describe-instance.cmd
|
|
78
|
-
- lib/cli_tools/ic-describe-instance.sh
|
|
79
|
-
- lib/cli_tools/ic-describe-instances.cmd
|
|
80
|
-
- lib/cli_tools/ic-describe-instances.sh
|
|
81
|
-
- lib/cli_tools/ic-describe-keypair.cmd
|
|
82
|
-
- lib/cli_tools/ic-describe-keypair.sh
|
|
83
|
-
- lib/cli_tools/ic-describe-keypairs.cmd
|
|
84
|
-
- lib/cli_tools/ic-describe-keypairs.sh
|
|
85
|
-
- lib/cli_tools/ic-describe-location.cmd
|
|
86
|
-
- lib/cli_tools/ic-describe-location.sh
|
|
87
|
-
- lib/cli_tools/ic-describe-locations.cmd
|
|
88
|
-
- lib/cli_tools/ic-describe-locations.sh
|
|
89
|
-
- lib/cli_tools/ic-describe-request.cmd
|
|
90
|
-
- lib/cli_tools/ic-describe-request.sh
|
|
91
|
-
- lib/cli_tools/ic-describe-vlans.cmd
|
|
92
|
-
- lib/cli_tools/ic-describe-vlans.sh
|
|
93
|
-
- lib/cli_tools/ic-describe-volume-offerings.cmd
|
|
94
|
-
- lib/cli_tools/ic-describe-volume-offerings.sh
|
|
95
|
-
- lib/cli_tools/ic-describe-volume.cmd
|
|
96
|
-
- lib/cli_tools/ic-describe-volume.sh
|
|
97
|
-
- lib/cli_tools/ic-describe-volumes.cmd
|
|
98
|
-
- lib/cli_tools/ic-describe-volumes.sh
|
|
99
|
-
- lib/cli_tools/ic-detach-volume.cmd
|
|
100
|
-
- lib/cli_tools/ic-detach-volume.sh
|
|
101
|
-
- lib/cli_tools/ic-extend-reservation.cmd
|
|
102
|
-
- lib/cli_tools/ic-extend-reservation.sh
|
|
103
|
-
- lib/cli_tools/ic-generate-keypair.cmd
|
|
104
|
-
- lib/cli_tools/ic-generate-keypair.sh
|
|
105
|
-
- lib/cli_tools/ic-release-address.cmd
|
|
106
|
-
- lib/cli_tools/ic-release-address.sh
|
|
107
|
-
- lib/cli_tools/ic-remove-keypair.cmd
|
|
108
|
-
- lib/cli_tools/ic-remove-keypair.sh
|
|
109
|
-
- lib/cli_tools/ic-restart-instance.cmd
|
|
110
|
-
- lib/cli_tools/ic-restart-instance.sh
|
|
111
|
-
- lib/cli_tools/ic-save-instance.cmd
|
|
112
|
-
- lib/cli_tools/ic-save-instance.sh
|
|
113
|
-
- lib/cli_tools/ic-set-default-key.cmd
|
|
114
|
-
- lib/cli_tools/ic-set-default-key.sh
|
|
115
|
-
- lib/cli_tools/ic-update-instance.cmd
|
|
116
|
-
- lib/cli_tools/ic-update-instance.sh
|
|
117
|
-
- lib/cli_tools/ic-update-keypair.cmd
|
|
118
|
-
- lib/cli_tools/ic-update-keypair.sh
|
|
119
|
-
- lib/cli_tools/lib/DeveloperCloud_API_Client_JAR.jar
|
|
120
|
-
- lib/cli_tools/lib/DeveloperCloud_CMD_Tool.jar
|
|
121
|
-
- lib/cli_tools/lib/commons-beanutils-1.6.1.jar
|
|
122
|
-
- lib/cli_tools/lib/commons-cli-1.2.jar
|
|
123
|
-
- lib/cli_tools/lib/commons-codec-1.3.jar
|
|
124
|
-
- lib/cli_tools/lib/commons-collections-3.2.1.jar
|
|
125
|
-
- lib/cli_tools/lib/commons-digester-1.8.jar
|
|
126
|
-
- lib/cli_tools/lib/commons-httpclient-3.1.jar
|
|
127
|
-
- lib/cli_tools/lib/commons-lang-2.3.jar
|
|
128
|
-
- lib/cli_tools/lib/commons-logging-1.1.1.jar
|
|
129
|
-
- lib/cli_tools/logging.properties
|
|
130
|
-
- lib/cli_tools/manifest.rmd
|
|
131
42
|
- lib/config/config.yml
|
|
132
43
|
- lib/hash_fix.rb
|
|
133
44
|
- lib/mime-types-1.16/History.txt
|
data/lib/cli_tools/README.txt
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
Command Line Tool
|
|
2
|
-
---- IBM Smart Business Development & Test on the IBM Cloud
|
|
3
|
-
Version 1.4.1.CC20110505-2046 March 2011
|
|
4
|
-
---------------
|
|
5
|
-
Changes:
|
|
6
|
-
1. Add an option in command ic-describe-images, -y --ignoreAdditionalInfo to ignore the additional information. With this
|
|
7
|
-
option, it won't download the parameters.xml from RAM.
|
|
8
|
-
|
|
9
|
-
Version 1.4.0.CC20110112-2159 January 2011
|
|
10
|
-
---------------
|
|
11
|
-
Changes:
|
|
12
|
-
1.Add command ic-update-instance
|
|
13
|
-
2.Add command ic-attach-volume & ic-detach-volume
|
|
14
|
-
|
|
15
|
-
Version 1.3.0.CC20101207-1012 November 2010
|
|
16
|
-
---------------
|
|
17
|
-
Changes:
|
|
18
|
-
1. Add DataCenterDownException in several commands.
|
|
19
|
-
|
|
20
|
-
Version 1.2.0.20101019-0015 October 2010
|
|
21
|
-
---------------
|
|
22
|
-
Changes:
|
|
23
|
-
1. Add command ic-clone-volume
|
|
24
|
-
2. Add parameter -e/--isMiniEphemeral for ic-create-instance to support provision an instance with minimal ephemeral storage
|
|
25
|
-
3. Support multiple addresses attached in one instance
|
|
26
|
-
|
|
27
|
-
Version 1.1.3.20101012-0333 October 2010
|
|
28
|
-
---------------
|
|
29
|
-
Changes:
|
|
30
|
-
1. Increase the value of the so_timeout
|
|
31
|
-
|
|
32
|
-
Version 1.1.2.20100906-0202 September 2010
|
|
33
|
-
---------------
|
|
34
|
-
Changes:
|
|
35
|
-
1. Update DeveloperCloud_API_Client_JAR.jar.
|
|
36
|
-
Correct the business logic in createInstance.
|
|
37
|
-
|
|
38
|
-
Version 1.1.1.20100829-2101 August 2010
|
|
39
|
-
---------------
|
|
40
|
-
Changes:
|
|
41
|
-
1. Update DeveloperCloud_API_Client_JAR-javadoc.jar.
|
|
42
|
-
|
|
43
|
-
Version 1.1.0.20100623-1406 June 2010
|
|
44
|
-
---------------
|
|
45
|
-
Changes:
|
|
46
|
-
1. Add command and parameters to support Vlan
|
|
47
|
-
1) ic-describe-vlans
|
|
48
|
-
2) ic-allocate-address
|
|
49
|
-
3) ic-create-instance
|
|
50
|
-
2. Add commands ic-describe-image-agreement.
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
ic-cmd.cmd -action AddKeyPair %*
|