Permalink
Browse files

Release 0.9.5.002

  • Loading branch information...
delano committed Oct 31, 2009
1 parent b5fe55d commit 22280986ffe959122eed436f89f2bf4d11e7a86a
Showing with 10 additions and 7 deletions.
  1. +2 −1 lib/rudy.rb
  2. +1 −0 lib/rudy/routines.rb
  3. +2 −2 lib/rudy/routines/handlers/rye.rb
  4. +3 −2 lib/rudy/routines/handlers/script.rb
  5. +2 −2 rudy.gemspec
View
@@ -42,8 +42,9 @@ module VERSION #:nodoc:
MAJOR = 0.freeze
MINOR = 9.freeze
TINY = 5.freeze
PATCH = '002'.freeze
end
def self.to_s; [MAJOR, MINOR, TINY].join('.'); end
def self.to_s; [MAJOR, MINOR, TINY, PATCH].join('.'); end
def self.to_f; self.to_s.to_f; end
end
View
@@ -101,6 +101,7 @@ def self.rescue(ret=nil, &bloc_party)
rescue NameError, ArgumentError, RuntimeError, Errno::ECONNREFUSED => ex
Rudy::Huxtable.le "#{ex.class}: #{ex.message}".color(:red)
Rudy::Huxtable.le ex.backtrace if Rudy.debug?
unless Rudy::Huxtable.global.parallel
choice = Annoy.get_user_input('(S)kip (A)bort: ', nil, 3600) || ''
if choice.match(/\AS/i)
@@ -51,7 +51,7 @@ def create_box(hostname, opts={})
box.exception_hook(::Rye::CommandError, &rbox_exception_handler)
box.exception_hook(Exception, &rbox_exception_handler)
## It'd better for unknown commands to be handled elsewhere
## because it doesn't make sense to retry a method that doesn't exist
##box.exception_hook(Rye::CommandNotFound, &rbox_exception_handler)
@@ -166,7 +166,7 @@ def print_exception(user, host, cmd, nickname, ex)
else
le prefix << "#{ex.class}: #{ex.message}".color(:red)
end
le ex.backtrace if @@global.verbose > 1
le ex.backtrace if Rudy.debug?
end
@@ -68,6 +68,9 @@ def execute_command(batch, robj, argv=nil)
### EXECUTE THE COMMANDS BLOCK
begin
robj.batch(argv, &proc)
rescue Rye::CommandError => ex
# No need to bubble exception up when in parallel mode
raise ex unless Rye::Set == robj
ensure
robj.enable_safe_mode # In case it was disabled
robj.switch_user original_user # Return to the user it was provided with
@@ -78,8 +81,6 @@ def execute_command(batch, robj, argv=nil)
end
end
end
View
@@ -1,7 +1,7 @@
@spec = Gem::Specification.new do |s|
s.name = "rudy"
s.rubyforge_project = 'rudy'
s.version = "0.9.5"
s.version = "0.9.5.002"
s.summary = "Rudy: Not your grandparents' EC2 deployment tool."
s.description = s.summary
s.author = "Delano Mandelbaum"
@@ -16,7 +16,7 @@
s.executables = %w[rudy rudy-ec2 rudy-sdb rudy-s3]
s.add_dependency 'rye', '>= 0.8.9'
s.add_dependency 'rye', '>= 0.8.11'
s.add_dependency 'attic', '>= 0.4.0'
s.add_dependency 'annoy', '>= 0.5.5'
s.add_dependency 'drydock', '>= 0.6.6'

0 comments on commit 2228098

Please sign in to comment.