diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-01-06 13:17:45 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-01-06 13:17:45 +0000 |
commit | e068873d918b97bcb39698ec7e9def54a87eb645 (patch) | |
tree | 24eb021b5e90b4a95adb764c9ea4786b85b129fc /lib/alaveteli_external_command.rb | |
parent | 95223b8b302a42feb211550da0b1dfccb0b03112 (diff) |
Add support for the :stdin_string option
Diffstat (limited to 'lib/alaveteli_external_command.rb')
-rw-r--r-- | lib/alaveteli_external_command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/alaveteli_external_command.rb b/lib/alaveteli_external_command.rb index b967c89b5..0144d75c2 100644 --- a/lib/alaveteli_external_command.rb +++ b/lib/alaveteli_external_command.rb @@ -15,7 +15,7 @@ module AlaveteliExternalCommand if opts.has_key? :append_to xc.out = opts[:append_to] end - xc.run() + xc.run(opts[:stdin_string]) if xc.status != 0 # Error $stderr.puts("Error from #{program_name} #{args.join(' ')}:") |