lib/shelltastic.rb in shelltastic-0.3.0 vs lib/shelltastic.rb in shelltastic-0.4.0

- old
+ new

@@ -1,7 +1,8 @@ require_relative "shelltastic/version" require_relative "shelltastic/utils" +require_relative "shelltastic/output_formatter" require_relative "shelltastic/command_io" require_relative "shelltastic/timer" require_relative "shelltastic/exceptions" # ShellTastic namespace @@ -15,10 +16,10 @@ # @return [Array] Array of hashes for each command executed @see IO::popen # @example # ShellTastic::Command.run "whoami" # ShellTastic::Command.run "whoami", "date" def run(*command) - command.flatten.map { |cmd| ShellTastic::IO.popen(cmd, ShellTastic::Timer.new) } + command.flatten.map { |cmd| ShellTastic::IO.popen(cmd, ShellTastic::Timer.new, ShellTastic::OutputFormatter.new) } end end end end