rudy 0.9.2 → 0.9.3

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.
@@ -1,6 +1,14 @@
1
1
  RUDY, CHANGES
2
2
 
3
3
 
4
+ #### 0.9.3 (2009-08-26) ###########################
5
+
6
+ * FIXED: Updated dependencies in gemspec (Rye)
7
+ * FIXED: Local SSH pubkeys are now included when creating remote SSH
8
+ connections. This resolves the issues with creating and authorizing
9
+ a remote user then getting an authentication error.
10
+
11
+
4
12
  #### 0.9.2 (2009-08-25) ###########################
5
13
 
6
14
  * FIXED: Threading error in Net::HTTP by forcing a mutex during AWS::EC2 requests
@@ -42,7 +42,7 @@ module Rudy
42
42
  unless defined?(MAJOR)
43
43
  MAJOR = 0.freeze
44
44
  MINOR = 9.freeze
45
- TINY = 2.freeze
45
+ TINY = 3.freeze
46
46
  end
47
47
  def self.to_s; [MAJOR, MINOR, TINY].join('.'); end
48
48
  def self.to_f; self.to_s.to_f; end
@@ -209,15 +209,20 @@ module Rudy
209
209
  end
210
210
 
211
211
  # Options to be sent to Rye::Box
212
- rye_opts = { :user => current_machine_user, :debug => nil }
212
+ rye_opts = { :user => current_machine_user, :keys => [], :debug => nil }
213
213
  if File.exists? pkey
214
214
  #raise "Cannot find file #{pkey}" unless File.exists?(pkey)
215
215
  if Rudy.sysinfo.os != :windows && File.stat(pkey).mode != 33152
216
216
  raise InsecureKeyPermissions, pkey
217
217
  end
218
- rye_opts[:keys] = pkey
218
+ rye_opts[:keys] << pkey
219
219
  end
220
220
 
221
+ local_keys = Rye.keys
222
+ rye_opts[:keys] += local_keys if local_keys.is_a?(Array)
223
+
224
+ puts "# SSH OPTS", rye_opts.to_yaml if @@global.verbose > 3
225
+
221
226
  # The user specified a command to run. We won't create an interactive
222
227
  # session so we need to prepare the command and its arguments
223
228
  if @argv.first
@@ -27,7 +27,9 @@ module Rudy::Routines::Handlers;
27
27
 
28
28
  box = ::Rye::Box.new hostname, opts
29
29
  box.nickname = nickname
30
-
30
+
31
+ local_keys = Rye.keys
32
+ box.add_keys local_keys if local_keys.is_a?(Array)
31
33
  box.add_key user_keypairpath(opts[:user])
32
34
 
33
35
  # We define hooks so we can still print each command and its output
@@ -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.2"
4
+ s.version = "0.9.3"
5
5
  s.summary = "Rudy: Not your grandparents' EC2 deployment tool."
6
6
  s.description = s.summary
7
7
  s.author = "Delano Mandelbaum"
@@ -16,7 +16,7 @@
16
16
 
17
17
  s.executables = %w[rudy rudy-ec2 rudy-sdb rudy-s3]
18
18
 
19
- s.add_dependency 'rye', '>= 0.8.7'
19
+ s.add_dependency 'rye', '>= 0.8.9'
20
20
  s.add_dependency 'attic', '>= 0.4.0'
21
21
  s.add_dependency 'annoy', '>= 0.5.5'
22
22
  s.add_dependency 'drydock', '>= 0.6.6'
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.2
4
+ version: 0.9.3
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: 2009-08-25 00:00:00 -04:00
12
+ date: 2009-08-26 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.8.7
23
+ version: 0.8.9
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: attic