Skip to content
Browse files

Further tweaks to pre/post command handling in transfer installer

  • Loading branch information...
1 parent 638e7ac commit e7737d2d2437405e010470e794ae60bea6f1dd3f @crafterm committed Sep 9, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/sprinkle/installers/transfer.rb
View
4 lib/sprinkle/installers/transfer.rb
@@ -135,7 +135,7 @@ def process(roles) #:nodoc:
unless pre.empty?
sequence = pre; sequence = sequence.join('; ') if sequence.is_a? Array
logger.info "#{@package.name} pre-transfer commands: #{sequence} for roles: #{roles}\n"
- @delivery.process @package.name, pre, roles
+ @delivery.process @package.name, [pre].flatten, roles
end
recursive = @options[:recursive]
@@ -169,7 +169,7 @@ def process(roles) #:nodoc:
unless post.empty?
sequence = post; sequence = sequence.join('; ') if sequence.is_a? Array
logger.info "#{@package.name} post-transfer commands: #{sequence} for roles: #{roles}\n"
- @delivery.process @package.name, post, roles
+ @delivery.process @package.name, [post].flatten, roles
end
end
end

0 comments on commit e7737d2

Please sign in to comment.
Something went wrong with that request. Please try again.