rudy 0.9.8.001 → 0.9.8.002

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.txt CHANGED
@@ -1,5 +1,6 @@
1
1
  RUDY, CHANGES
2
2
 
3
+ * TODO: http://github.com/solutious/rudy/issues/#issue/43
3
4
  * TODO: Warning in latest Ruby 1.9.1: httpclient/http.rb:367: warning: variable $KCODE
4
5
  * rudy create-disks
5
6
  Executing routine: create-disks
@@ -10,11 +11,16 @@ Creating volume...
10
11
  (S)kip (A)bort:
11
12
 
12
13
 
13
- #### 0.9.7.002 (2010-04-02) ###############################
14
+ #### 0.9.8.002 (2010-05-14) #######################
15
+
16
+ * FIXED: Calling startup routine as before dependency
17
+ * CHANGE: only switch to root if the hostname requires changing [Matt Jackson]
18
+
19
+ #### 0.9.8.001 (2010-04-02) #######################
14
20
 
15
21
  * ADDED: Support for specifying non-ec2 instances in machines config with hostname parameter
16
22
 
17
- #### 0.9.7 (2010-02-20) ###############################
23
+ #### 0.9.7 (2010-02-20) ###########################
18
24
 
19
25
  * FIXED: Replace the group_id parameter with security_group. [Diego Elio 'Flameeyes' Pettenò]
20
26
  * FIXED: Remote the addressing type option no longer supported by amazon-ec2. [Diego Elio 'Flameeyes' Pettenò]
data/lib/rudy.rb CHANGED
@@ -44,7 +44,7 @@ module Rudy
44
44
  MAJOR = 0.freeze
45
45
  MINOR = 9.freeze
46
46
  TINY = 8.freeze
47
- PATCH = '001'.freeze
47
+ PATCH = '002'.freeze
48
48
  end
49
49
  def self.to_s; [MAJOR, MINOR, TINY, PATCH].join('.'); end
50
50
  def self.to_f; self.to_s.to_f; end
@@ -87,10 +87,7 @@ module Rudy; module Routines; module Handlers;
87
87
 
88
88
  def set_hostname(rset)
89
89
  raise NoMachines if rset.boxes.empty?
90
-
91
- original_user = rset.user
92
- rset.switch_user 'root'
93
- rset.add_key user_keypairpath('root')
90
+
94
91
  # Set the hostname if specified in the machines config.
95
92
  # :rudy -> change to Rudy's machine name
96
93
  # :default -> leave the hostname as it is
@@ -101,6 +98,9 @@ module Rudy; module Routines; module Handlers;
101
98
  rset.batch(type) do |hn|
102
99
  unless self.stash.os == :windows
103
100
  if hn != :default
101
+ original_user = rset.user
102
+ rset.switch_user 'root'
103
+ rset.add_key user_keypairpath('root')
104
104
  hn = self.stash.name if hn == :rudy
105
105
  self.quietly { hostname(hn) }
106
106
  end
@@ -2,6 +2,10 @@
2
2
  module Rudy; module Routines;
3
3
  class Passthrough < Rudy::Routines::Base
4
4
 
5
+ Rudy::Routines.add_routine :startup, Rudy::Routines::Startup
6
+ Rudy::Routines.add_routine :shutdown, Rudy::Routines::Shutdown
7
+ Rudy::Routines.add_routine :reboot, Rudy::Routines::Reboot
8
+
5
9
  def init(*args)
6
10
  Rudy::Routines.rescue {
7
11
  @machines = Rudy::Machines.list || []
@@ -72,7 +72,7 @@ module Rudy; module Routines;
72
72
 
73
73
  # This is important b/c the machines will not
74
74
  # have DNS info until after they are running.
75
- # This will also assigns elastic IP addresses.
75
+ # This will also assign elastic IP addresses.
76
76
  Rudy::Routines.rescue { Rudy::Routines::Handlers::Host.update_dns @@rset }
77
77
 
78
78
  Rudy::Routines.rescue {
data/rudy.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  @spec = Gem::Specification.new do |s|
2
2
  s.name = "rudy"
3
3
  s.rubyforge_project = 'rudy'
4
- s.version = "0.9.8.001"
4
+ s.version = "0.9.8.002"
5
5
  s.summary = "Rudy: Not your grandparents' EC2 deployment tool."
6
6
  s.description = s.summary
7
7
  s.author = "Delano Mandelbaum"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rudy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8.001
4
+ version: 0.9.8.002
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delano Mandelbaum
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-04-04 00:00:00 -04:00
12
+ date: 2010-05-14 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency