lib/fulmar/shell.rb in fulmar-shell-1.6.3 vs lib/fulmar/shell.rb in fulmar-shell-1.6.4

- 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.3' + VERSION = '1.6.4' attr_accessor :debug, :last_output, :last_error, :quiet, :strict attr_reader :path DEFAULT_OPTIONS = { @@ -20,11 +20,11 @@ @path = (path.nil? || path.empty?) ? '.' : path @path = File.expand_path(@path) if local? @last_output = [] @last_error = [] @debug = false - @quiet = false + @quiet = true @strict = false @clean_environment = [] # list of things to clean from environment variables end def run(command, options = 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_value << line + @last_output << line puts line unless @quiet end end Thread.new do