right-scale-api 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/right-scale-api/base.rb +7 -0
- data/lib/right-scale-api/server.rb +9 -0
- data/right-scale-api.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/lib/right-scale-api/base.rb
CHANGED
@@ -97,6 +97,13 @@ module RightScaleAPI
|
|
97
97
|
def uri
|
98
98
|
RightScaleAPI::Client.base_uri + path
|
99
99
|
end
|
100
|
+
|
101
|
+
def reload!
|
102
|
+
get('')[self.class.api_name].each do |attr, value|
|
103
|
+
self.send :"#{attr}=",value
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
100
107
|
protected
|
101
108
|
|
102
109
|
def self.collection_uri uri=nil
|
@@ -64,5 +64,14 @@ module RightScaleAPI
|
|
64
64
|
volume = account.create_ec2_ebs_volume opts
|
65
65
|
attach_volume volume, device
|
66
66
|
end
|
67
|
+
|
68
|
+
def self.opts_to_query_opts opts
|
69
|
+
assoc_ip = opts.delete :associate_eip_at_launch
|
70
|
+
if !assoc_ip.nil?
|
71
|
+
opts[:associate_eip_at_launch] = assoc_ip ? 1 : 0
|
72
|
+
end
|
73
|
+
super opts
|
74
|
+
end
|
75
|
+
|
67
76
|
end
|
68
77
|
end
|
data/right-scale-api.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{right-scale-api}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Nick Howard"]
|
12
|
-
s.date = %q{2010-05-
|
12
|
+
s.date = %q{2010-05-10}
|
13
13
|
s.description = %q{A client for the RightScale API that hides some of the complexity of the API
|
14
14
|
(It doesn't require passing around hrefs as much). Based on HTTParty
|
15
15
|
}
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Nick Howard
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-05-
|
17
|
+
date: 2010-05-10 00:00:00 -06:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|