rudy 0.9.8.012 → 0.9.8.013
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 +4 -0
- data/lib/rudy.rb +1 -1
- data/lib/rudy/huxtable.rb +5 -1
- data/rudy.gemspec +1 -1
- metadata +4 -4
data/CHANGES.txt
CHANGED
@@ -12,6 +12,10 @@ Creating volume...
|
|
12
12
|
(S)kip (A)bort:
|
13
13
|
|
14
14
|
|
15
|
+
#### 0.9.8.013 (2010-09-02) #######################
|
16
|
+
|
17
|
+
* ADDED: use default user instead of assuming root
|
18
|
+
|
15
19
|
#### 0.9.8.012 (2010-09-02) #######################
|
16
20
|
|
17
21
|
* ADDED: rudy-sdb objects --destroy
|
data/lib/rudy.rb
CHANGED
data/lib/rudy/huxtable.rb
CHANGED
@@ -81,6 +81,9 @@ module Rudy
|
|
81
81
|
base_dir
|
82
82
|
end
|
83
83
|
|
84
|
+
def default_user
|
85
|
+
@@config.defaults.user || 'root'
|
86
|
+
end
|
84
87
|
|
85
88
|
# Returns the name of the current keypair for the given user.
|
86
89
|
# If there's a private key path in the config this will return
|
@@ -89,12 +92,13 @@ module Rudy
|
|
89
92
|
# name: <tt>key-ZONE-ENV-ROLE-USER</tt>. Or if this the user is
|
90
93
|
# root: <tt>key-ZONE-ENV-ROLE</tt>
|
91
94
|
def user_keypairname(user=nil)
|
95
|
+
p default_user
|
92
96
|
user ||= current_machine_user
|
93
97
|
path = defined_keypairpath user
|
94
98
|
if path
|
95
99
|
Huxtable.keypair_path_to_name(path)
|
96
100
|
else
|
97
|
-
n = (user.to_s ==
|
101
|
+
n = (user.to_s == default_user) ? '' : "-#{user}"
|
98
102
|
"key-%s-%s%s" % [@@global.zone, current_machine_group, n]
|
99
103
|
end
|
100
104
|
end
|
data/rudy.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rudy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 61
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
9
|
- 8
|
10
|
-
-
|
11
|
-
version: 0.9.8.
|
10
|
+
- 13
|
11
|
+
version: 0.9.8.013
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Delano Mandelbaum
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-10-08 00:00:00 -04:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|