rest_connection 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.18
1
+ 0.0.19
@@ -40,5 +40,10 @@ class Ec2ServerArray
40
40
  serv_href = URI.parse(self.href)
41
41
  connection.post("#{serv_href.path}/terminate_all")
42
42
  end
43
+
44
+ def launch
45
+ serv_href = URI.parse(self.href)
46
+ connection.post("#{serv_href.path}/launch")
47
+ end
43
48
  end
44
49
 
@@ -27,6 +27,7 @@ class Server
27
27
  location = connection.post(self.resource_plural_name,create_options)
28
28
  newrecord = self.new('href' => location)
29
29
  newrecord.reload
30
+ newrecord.parameters #transform the parameters!
30
31
  newrecord
31
32
  end
32
33
 
@@ -52,6 +53,7 @@ class Server
52
53
 
53
54
  # This is overriding the default save with one that can massage the parameters
54
55
  def save
56
+ self.parameters #transform the parameters, if they're not already!!
55
57
  uri = URI.parse(self.href)
56
58
  connection.put(uri.path, resource_singular_name.to_sym => @params)
57
59
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rest_connection}
8
- s.version = "0.0.18"
8
+ s.version = "0.0.19"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jeremy Deininger"]
12
- s.date = %q{2011-02-15}
12
+ s.date = %q{2011-03-04}
13
13
  s.description = %q{provides rest_connection}
14
14
  s.email = %q{jeremy@rubyonlinux.org}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest_connection
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 57
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 18
10
- version: 0.0.18
9
+ - 19
10
+ version: 0.0.19
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jeremy Deininger
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-15 00:00:00 -08:00
18
+ date: 2011-03-04 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency