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 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
@@ -44,7 +44,7 @@ module Rudy
44
44
  MAJOR = 0.freeze
45
45
  MINOR = 9.freeze
46
46
  TINY = 8.freeze
47
- PATCH = '012'.freeze
47
+ PATCH = '013'.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
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 == 'root') ? '' : "-#{user}"
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
@@ -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.012"
4
+ s.version = "0.9.8.013"
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rudy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 61
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
9
  - 8
10
- - 12
11
- version: 0.9.8.012
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-09-02 00:00:00 -04:00
19
+ date: 2010-10-08 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency