kytoon 1.4.2 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ * Wed Aug 21 2013 Dan Prince <dprince@redhat.com> - 1.4.3
2
+ -CloudCue: Add support for image_name.
3
+
1
4
  * Tue Aug 20 2013 Dan Prince <dprince@redhat.com> - 1.4.2
2
5
  -Add --remote option to be used when listing remote CloudCue
3
6
  groups.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.2
1
+ 1.4.3
@@ -14,6 +14,7 @@ class Server
14
14
  attr_accessor :cloud_server_id_number
15
15
  attr_accessor :flavor_id
16
16
  attr_accessor :image_id
17
+ attr_accessor :image_name
17
18
  attr_accessor :server_group_id
18
19
  attr_accessor :gateway
19
20
  attr_accessor :retry_count
@@ -30,6 +31,7 @@ class Server
30
31
  @cloud_server_id_number=options[:cloud_server_id_number]
31
32
  @flavor_id=options[:flavor_id]
32
33
  @image_id=options[:image_id]
34
+ @image_name=options[:image_name]
33
35
  @admin_password=options[:admin_password]
34
36
  @server_group_id=options[:server_group_id].to_i
35
37
  @gateway = [true, "true"].include?(options[:gateway])
@@ -54,7 +56,12 @@ class Server
54
56
  server.tag! "internal-ip-addr", @internal_ip_addr if @internal_ip_addr
55
57
  server.tag! "cloud-server-id-number", @cloud_server_id_number if @cloud_server_id_number
56
58
  server.tag! "flavor-id", @flavor_id
57
- server.tag! "image-id", @image_id
59
+ if @image_id then
60
+ server.tag! "image-id", @image_id
61
+ end
62
+ if @image_name then
63
+ server.tag! "image-name", @image_name
64
+ end
58
65
  server.tag! "admin-password", @admin_password
59
66
  server.tag! "server-group-id", @server_group_id
60
67
  server.tag! "gateway", "true" if gateway?
@@ -75,6 +75,7 @@ class ServerGroup
75
75
  :description => server_config["description"],
76
76
  :flavor_id => server_config["flavor_id"],
77
77
  :image_id => server_config["image_id"],
78
+ :image_name => server_config["image_name"],
78
79
  :gateway => server_config["gateway"]
79
80
  )
80
81
  end
@@ -105,7 +106,12 @@ class ServerGroup
105
106
  xml_server.name(server.name)
106
107
  xml_server.description(server.description)
107
108
  xml_server.tag! "flavor-id", server.flavor_id
108
- xml_server.tag! "image-id", server.image_id
109
+ if server.image_id then
110
+ xml_server.tag! "image-id", server.image_id
111
+ end
112
+ if server.image_name then
113
+ xml_server.tag! "image-name", server.image_name
114
+ end
109
115
  if server.admin_password then
110
116
  xml_server.tag! "admin-password", server.admin_password
111
117
  end
@@ -89,11 +89,6 @@ class ThorTasks < Thor
89
89
  ServerGroup.init(options[:group_type])
90
90
  args=ARGV[1, ARGV.length].join(" ")
91
91
  sg = ServerGroup.get(options[:group_id], {:remote => options[:remote]})
92
- #if (ARGV[1] and ARGV[1] =~ /^--group_id.*/) and (ARGV[2] and ARGV[2] =~ /^--group_id.*/)
93
- #args=ARGV[3, ARGV.length].join(" ")
94
- #elsif ARGV[1] and ARGV[1] =~ /^--group_id.*/
95
- #args=ARGV[2, ARGV.length].join(" ")
96
- #end
97
92
  arg_count = 1
98
93
  arg_count +=1 if args =~ /--group_type/
99
94
  arg_count +=1 if args =~ /--group_id/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kytoon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-20 00:00:00.000000000 Z
12
+ date: 2013-08-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
@@ -283,7 +283,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
283
283
  version: '0'
284
284
  segments:
285
285
  - 0
286
- hash: 1893588902202544719
286
+ hash: -3393092285663010569
287
287
  required_rubygems_version: !ruby/object:Gem::Requirement
288
288
  none: false
289
289
  requirements: