sorbet/rbi/gems/childprocess@4.1.0.rbi in mootool-0.2.7 vs sorbet/rbi/gems/childprocess@4.1.0.rbi in mootool-0.2.8
- old
+ new
@@ -2,446 +2,400 @@
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `childprocess` gem.
# Please instead update this file by running `bin/tapioca gem childprocess`.
-# source://childprocess-4.1.0/lib/childprocess/version.rb:1
+# source://childprocess//lib/childprocess/version.rb#1
module ChildProcess
class << self
- # source://childprocess-4.1.0/lib/childprocess.rb:131
+ # source://childprocess//lib/childprocess.rb#131
def arch; end
- # source://childprocess-4.1.0/lib/childprocess.rb:15
- def build(*args)
- ;
- end
+ # source://childprocess//lib/childprocess.rb#15
+ def build(*args); end
# By default, a child process will inherit open file descriptors from the
# parent process. This helper provides a cross-platform way of making sure
# that doesn't happen for the given file/io.
#
- # source://childprocess-4.1.0/lib/childprocess.rb:158
- def close_on_exec(file)
- ;
- end
+ # source://childprocess//lib/childprocess.rb#158
+ def close_on_exec(file); end
# @return [Boolean]
#
- # source://childprocess-4.1.0/lib/childprocess.rb:64
+ # source://childprocess//lib/childprocess.rb#64
def jruby?; end
# @return [Boolean]
#
- # source://childprocess-4.1.0/lib/childprocess.rb:60
+ # source://childprocess//lib/childprocess.rb#60
def linux?; end
- # source://childprocess-4.1.0/lib/childprocess.rb:33
+ # source://childprocess//lib/childprocess.rb#33
def logger; end
# Sets the attribute logger
#
# @param value the value to set the attribute logger to.
#
- # source://childprocess-4.1.0/lib/childprocess.rb:13
- def logger=(_arg0)
- ;
- end
+ # source://childprocess//lib/childprocess.rb#13
+ def logger=(_arg0); end
- # source://childprocess-4.1.0/lib/childprocess.rb:15
- def new(*args)
- ;
- end
+ # source://childprocess//lib/childprocess.rb#15
+ def new(*args); end
- # source://childprocess-4.1.0/lib/childprocess.rb:105
+ # source://childprocess//lib/childprocess.rb#105
def os; end
- # source://childprocess-4.1.0/lib/childprocess.rb:42
+ # source://childprocess//lib/childprocess.rb#42
def platform; end
- # source://childprocess-4.1.0/lib/childprocess.rb:52
+ # source://childprocess//lib/childprocess.rb#52
def platform_name; end
# Set this to true to enable experimental use of posix_spawn.
#
- # source://childprocess-4.1.0/lib/childprocess.rb:101
- def posix_spawn=(bool)
- ;
- end
+ # source://childprocess//lib/childprocess.rb#101
+ def posix_spawn=(bool); end
# @return [Boolean]
#
- # source://childprocess-4.1.0/lib/childprocess.rb:72
+ # source://childprocess//lib/childprocess.rb#72
def posix_spawn?; end
# @return [Boolean]
#
- # source://childprocess-4.1.0/lib/childprocess.rb:56
+ # source://childprocess//lib/childprocess.rb#56
def unix?; end
# @return [Boolean]
#
- # source://childprocess-4.1.0/lib/childprocess.rb:68
+ # source://childprocess//lib/childprocess.rb#68
def windows?; end
private
# @return [Boolean] `true` if this Ruby represents `1` in 64 bits (8 bytes).
#
- # source://childprocess-4.1.0/lib/childprocess.rb:199
+ # source://childprocess//lib/childprocess.rb#199
def is_64_bit?; end
- # source://childprocess-4.1.0/lib/childprocess.rb:179
- def warn_once(msg)
- ;
- end
+ # source://childprocess//lib/childprocess.rb#179
+ def warn_once(msg); end
# Workaround: detect the situation that an older Darwin Ruby is actually
# 64-bit, but is misreporting cpu as i686, which would imply 32-bit.
#
# @return [Boolean] `true` if:
# (a) on Mac OS X
# (b) actually running in 64-bit mode
#
- # source://childprocess-4.1.0/lib/childprocess.rb:194
+ # source://childprocess//lib/childprocess.rb#194
def workaround_older_macosx_misreported_cpu?; end
end
end
-# source://childprocess-4.1.0/lib/childprocess/abstract_io.rb:2
+# source://childprocess//lib/childprocess/abstract_io.rb#2
class ChildProcess::AbstractIO
# @api private
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_io.rb:24
- def _stdin=(io)
- ;
- end
+ # source://childprocess//lib/childprocess/abstract_io.rb#24
+ def _stdin=(io); end
- # source://childprocess-4.1.0/lib/childprocess/abstract_io.rb:5
+ # source://childprocess//lib/childprocess/abstract_io.rb#5
def inherit!; end
# Returns the value of attribute stderr.
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_io.rb:3
+ # source://childprocess//lib/childprocess/abstract_io.rb#3
def stderr; end
- # source://childprocess-4.1.0/lib/childprocess/abstract_io.rb:10
- def stderr=(io)
- ;
- end
+ # source://childprocess//lib/childprocess/abstract_io.rb#10
+ def stderr=(io); end
# Returns the value of attribute stdin.
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_io.rb:3
+ # source://childprocess//lib/childprocess/abstract_io.rb#3
def stdin; end
# Returns the value of attribute stdout.
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_io.rb:3
+ # source://childprocess//lib/childprocess/abstract_io.rb#3
def stdout; end
- # source://childprocess-4.1.0/lib/childprocess/abstract_io.rb:15
- def stdout=(io)
- ;
- end
+ # source://childprocess//lib/childprocess/abstract_io.rb#15
+ def stdout=(io); end
private
# @raise [SubclassResponsibility]
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_io.rb:31
- def check_type(io)
- ;
- end
+ # source://childprocess//lib/childprocess/abstract_io.rb#31
+ def check_type(io); end
end
-# source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:2
+# source://childprocess//lib/childprocess/abstract_process.rb#2
class ChildProcess::AbstractProcess
# Create a new process with the given args.
#
# @api private
# @return [AbstractProcess] a new instance of AbstractProcess
# @see ChildProcess.build
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:42
- def initialize(args)
- ;
- end
+ # source://childprocess//lib/childprocess/abstract_process.rb#42
+ def initialize(args); end
# Is this process running?
#
# @return [Boolean]
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:133
+ # source://childprocess//lib/childprocess/abstract_process.rb#133
def alive?; end
# Returns true if the process has exited and the exit code was not 0.
#
# @return [Boolean]
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:143
+ # source://childprocess//lib/childprocess/abstract_process.rb#143
def crashed?; end
# Set the child's current working directory.
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:25
+ # source://childprocess//lib/childprocess/abstract_process.rb#25
def cwd; end
# Set the child's current working directory.
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:25
- def cwd=(_arg0)
- ;
- end
+ # source://childprocess//lib/childprocess/abstract_process.rb#25
+ def cwd=(_arg0); end
# Set this to true if you do not care about when or if the process quits.
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:10
+ # source://childprocess//lib/childprocess/abstract_process.rb#10
def detach; end
# Set this to true if you do not care about when or if the process quits.
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:10
- def detach=(_arg0)
- ;
- end
+ # source://childprocess//lib/childprocess/abstract_process.rb#10
+ def detach=(_arg0); end
# Set this to true if you want to write to the process' stdin (process.io.stdin)
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:15
+ # source://childprocess//lib/childprocess/abstract_process.rb#15
def duplex; end
# Set this to true if you want to write to the process' stdin (process.io.stdin)
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:15
- def duplex=(_arg0)
- ;
- end
+ # source://childprocess//lib/childprocess/abstract_process.rb#15
+ def duplex=(_arg0); end
# Modify the child's environment variables
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:20
+ # source://childprocess//lib/childprocess/abstract_process.rb#20
def environment; end
# Returns the value of attribute exit_code.
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:5
+ # source://childprocess//lib/childprocess/abstract_process.rb#5
def exit_code; end
# Did the process exit?
#
# @raise [SubclassResponsibility]
# @return [Boolean]
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:113
+ # source://childprocess//lib/childprocess/abstract_process.rb#113
def exited?; end
# Returns a ChildProcess::AbstractIO subclass to configure the child's IO streams.
#
# @raise [SubclassResponsibility]
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:62
+ # source://childprocess//lib/childprocess/abstract_process.rb#62
def io; end
# Set this to true to make the child process the leader of a new process group
#
# This can be used to make sure that all grandchildren are killed
# when the child process dies.
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:33
+ # source://childprocess//lib/childprocess/abstract_process.rb#33
def leader; end
# Set this to true to make the child process the leader of a new process group
#
# This can be used to make sure that all grandchildren are killed
# when the child process dies.
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:33
- def leader=(_arg0)
- ;
- end
+ # source://childprocess//lib/childprocess/abstract_process.rb#33
+ def leader=(_arg0); end
# @raise [SubclassResponsibility]
# @return [Integer] the pid of the process after it has started
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:70
+ # source://childprocess//lib/childprocess/abstract_process.rb#70
def pid; end
# Wait for the process to exit, raising a ChildProcess::TimeoutError if
# the timeout expires.
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:152
- def poll_for_exit(timeout)
- ;
- end
+ # source://childprocess//lib/childprocess/abstract_process.rb#152
+ def poll_for_exit(timeout); end
# Launch the child process
#
# @return [AbstractProcess] self
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:80
+ # source://childprocess//lib/childprocess/abstract_process.rb#80
def start; end
# Has the process started?
#
# @return [Boolean]
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:123
+ # source://childprocess//lib/childprocess/abstract_process.rb#123
def started?; end
# Forcibly terminate the process, using increasingly harsher methods if possible.
#
# @param timeout [Integer] (3) Seconds to wait before trying the next method.
# @raise [SubclassResponsibility]
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:93
- def stop(timeout = T.unsafe(nil))
- ;
- end
+ # source://childprocess//lib/childprocess/abstract_process.rb#93
+ def stop(timeout = T.unsafe(nil)); end
# Block until the process has been terminated.
#
# @raise [SubclassResponsibility]
# @return [Integer] The exit status of the process
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:103
+ # source://childprocess//lib/childprocess/abstract_process.rb#103
def wait; end
private
# @raise [Error]
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:187
+ # source://childprocess//lib/childprocess/abstract_process.rb#187
def assert_started; end
# @return [Boolean]
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:171
+ # source://childprocess//lib/childprocess/abstract_process.rb#171
def detach?; end
# @return [Boolean]
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:175
+ # source://childprocess//lib/childprocess/abstract_process.rb#175
def duplex?; end
# @raise [SubclassResponsibility]
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:167
+ # source://childprocess//lib/childprocess/abstract_process.rb#167
def launch_process; end
# @return [Boolean]
#
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:179
+ # source://childprocess//lib/childprocess/abstract_process.rb#179
def leader?; end
- # source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:183
- def log(*args)
- ;
- end
+ # source://childprocess//lib/childprocess/abstract_process.rb#183
+ def log(*args); end
end
-# source://childprocess-4.1.0/lib/childprocess/abstract_process.rb:3
+# source://childprocess//lib/childprocess/abstract_process.rb#3
ChildProcess::AbstractProcess::POLL_INTERVAL = T.let(T.unsafe(nil), Float)
-# source://childprocess-4.1.0/lib/childprocess/errors.rb:2
+# source://childprocess//lib/childprocess/errors.rb#2
class ChildProcess::Error < ::StandardError; end
-# source://childprocess-4.1.0/lib/childprocess/errors.rb:11
+# source://childprocess//lib/childprocess/errors.rb#11
class ChildProcess::InvalidEnvironmentVariable < ::ChildProcess::Error; end
-# source://childprocess-4.1.0/lib/childprocess/errors.rb:14
+# source://childprocess//lib/childprocess/errors.rb#14
class ChildProcess::LaunchError < ::ChildProcess::Error; end
-# source://childprocess-4.1.0/lib/childprocess/errors.rb:17
+# source://childprocess//lib/childprocess/errors.rb#17
class ChildProcess::MissingFFIError < ::ChildProcess::Error
# @return [MissingFFIError] a new instance of MissingFFIError
#
- # source://childprocess-4.1.0/lib/childprocess/errors.rb:18
+ # source://childprocess//lib/childprocess/errors.rb#18
def initialize; end
end
-# source://childprocess-4.1.0/lib/childprocess/errors.rb:28
+# source://childprocess//lib/childprocess/errors.rb#28
class ChildProcess::MissingPlatformError < ::ChildProcess::Error
# @return [MissingPlatformError] a new instance of MissingPlatformError
#
- # source://childprocess-4.1.0/lib/childprocess/errors.rb:29
+ # source://childprocess//lib/childprocess/errors.rb#29
def initialize; end
end
-# source://childprocess-4.1.0/lib/childprocess/errors.rb:8
+# source://childprocess//lib/childprocess/errors.rb#8
class ChildProcess::SubclassResponsibility < ::ChildProcess::Error; end
-# source://childprocess-4.1.0/lib/childprocess/errors.rb:5
+# source://childprocess//lib/childprocess/errors.rb#5
class ChildProcess::TimeoutError < ::ChildProcess::Error; end
-# source://childprocess-4.1.0/lib/childprocess/unix.rb:2
-module ChildProcess::Unix
- ;
-end
+# source://childprocess//lib/childprocess/unix.rb#2
+module ChildProcess::Unix; end
-# source://childprocess-4.1.0/lib/childprocess/unix/fork_exec_process.rb:3
+# source://childprocess//lib/childprocess/unix/fork_exec_process.rb#3
class ChildProcess::Unix::ForkExecProcess < ::ChildProcess::Unix::Process
private
- # source://childprocess-4.1.0/lib/childprocess/unix/fork_exec_process.rb:6
+ # source://childprocess//lib/childprocess/unix/fork_exec_process.rb#6
def launch_process; end
- # source://childprocess-4.1.0/lib/childprocess/unix/fork_exec_process.rb:72
+ # source://childprocess//lib/childprocess/unix/fork_exec_process.rb#72
def set_env; end
end
-# source://childprocess-4.1.0/lib/childprocess/unix/io.rb:3
+# source://childprocess//lib/childprocess/unix/io.rb#3
class ChildProcess::Unix::IO < ::ChildProcess::AbstractIO
private
- # source://childprocess-4.1.0/lib/childprocess/unix/io.rb:6
- def check_type(io)
- ;
- end
+ # source://childprocess//lib/childprocess/unix/io.rb#6
+ def check_type(io); end
end
-# source://childprocess-4.1.0/lib/childprocess/unix/process.rb:3
+# source://childprocess//lib/childprocess/unix/process.rb#3
class ChildProcess::Unix::Process < ::ChildProcess::AbstractProcess
# @return [Boolean]
#
- # source://childprocess-4.1.0/lib/childprocess/unix/process.rb:28
+ # source://childprocess//lib/childprocess/unix/process.rb#28
def exited?; end
- # source://childprocess-4.1.0/lib/childprocess/unix/process.rb:6
+ # source://childprocess//lib/childprocess/unix/process.rb#6
def io; end
# Returns the value of attribute pid.
#
- # source://childprocess-4.1.0/lib/childprocess/unix/process.rb:4
+ # source://childprocess//lib/childprocess/unix/process.rb#4
def pid; end
- # source://childprocess-4.1.0/lib/childprocess/unix/process.rb:10
- def stop(timeout = T.unsafe(nil))
- ;
- end
+ # source://childprocess//lib/childprocess/unix/process.rb#10
+ def stop(timeout = T.unsafe(nil)); end
- # source://childprocess-4.1.0/lib/childprocess/unix/process.rb:47
+ # source://childprocess//lib/childprocess/unix/process.rb#47
def wait; end
private
- # source://childprocess-4.1.0/lib/childprocess/unix/process.rb:80
+ # source://childprocess//lib/childprocess/unix/process.rb#80
def _pid; end
- # source://childprocess-4.1.0/lib/childprocess/unix/process.rb:65
+ # source://childprocess//lib/childprocess/unix/process.rb#65
def send_kill; end
- # source://childprocess-4.1.0/lib/childprocess/unix/process.rb:69
- def send_signal(sig)
- ;
- end
+ # source://childprocess//lib/childprocess/unix/process.rb#69
+ def send_signal(sig); end
- # source://childprocess-4.1.0/lib/childprocess/unix/process.rb:61
+ # source://childprocess//lib/childprocess/unix/process.rb#61
def send_term; end
- # source://childprocess-4.1.0/lib/childprocess/unix/process.rb:76
- def set_exit_code(status)
- ;
- end
+ # source://childprocess//lib/childprocess/unix/process.rb#76
+ def set_exit_code(status); end
end
-# source://childprocess-4.1.0/lib/childprocess/version.rb:2
+# source://childprocess//lib/childprocess/version.rb#2
ChildProcess::VERSION = T.let(T.unsafe(nil), String)