rudy 0.9.8.001 → 0.9.8.002
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/CHANGES.txt +8 -2
- data/lib/rudy.rb +1 -1
- data/lib/rudy/routines/handlers/host.rb +4 -4
- data/lib/rudy/routines/passthrough.rb +4 -0
- data/lib/rudy/routines/startup.rb +1 -1
- data/rudy.gemspec +1 -1
- metadata +2 -2
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.
|
|
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
|
@@ -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
|
|
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
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.
|
|
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-
|
|
12
|
+
date: 2010-05-14 00:00:00 -04:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|