lib/right_develop/utility/shell.rb in right_develop-3.0.1 vs lib/right_develop/utility/shell.rb in right_develop-3.0.2

- old
+ new

@@ -93,9 +93,10 @@ # @option options :raise_on_failure [TrueClass|FalseClass] if true, wil raise a RuntimeError if the command does not end successfully (default), false to ignore errors # @option options :set_env_vars [Hash] environment variables to set during execution (default = none set) # @option options :clear_env_vars [Hash] environment variables to clear during execution (default = none cleared but see :clean_bundler_env) # @option options :clean_bundler_env [TrueClass|FalseClass] true to clear all bundler environment variables during execution (default), false to inherit bundler env from parent # @option options :sudo [TrueClass|FalseClass] if true, will wrap command in sudo if needed, false to run as current user (default) + # @option options :timeout [Numeric] to kill spawned process when time (in seconds) expires # # @return [Integer] exitstatus of the command # # @raise [ShellError] on failure only if :raise_on_failure is true def execute(cmd, options = {})