lib/wordmove/hosts/local_host.rb in wordmove-0.0.4 vs lib/wordmove/hosts/local_host.rb in wordmove-0.0.6

- old
+ new

@@ -3,13 +3,18 @@ module Wordmove class LocalHost attr_reader :options attr_reader :logger + attr_reader :ssh_extras def initialize(options = {}) @options = Hashie::Mash.new(options) @logger = @options[:logger] + @ssh_extras = {} + [ :port, :password ].each do |p| + @ssh_extras.merge!( { p => @options.ssh[p] } ) if @options.ssh and @options.ssh[p] + end end def run(*args) command = shell_command(*args) logger.verbose "Executing locally #{command}"