lib/fulmar/shell.rb in fulmar-shell-1.6.4 vs lib/fulmar/shell.rb in fulmar-shell-1.6.5
- old
+ new
@@ -3,11 +3,11 @@
# This shell is part of the fulmar deployment tools
# it can be used stand-alone, though
module Fulmar
# Implements simple access to shell commands
class Shell
- VERSION = '1.6.4'
+ VERSION = '1.6.5'
attr_accessor :debug, :last_output, :last_error, :quiet, :strict
attr_reader :path
DEFAULT_OPTIONS = {
@@ -97,10 +97,10 @@
return_value = -1
Open3.popen3(environment, command) do |_stdin, stdout, stderr, wait_thread|
Thread.new do
stdout.each do |line|
- @last_output << line
+ @last_output << line.strip
puts line unless @quiet
end
end
Thread.new do