childprocess:用于管理子进程的跨平台Ruby库-源码

上传者: 42134051 | 上传时间: 2021-02-26 18:07:21 | 文件大小: 46KB | 文件类型: ZIP
子进程 这个gem旨在成为一种简单可靠的解决方案,用于控制在Ruby / OS组合中在后台运行的外部程序。 该代码起源于 gem,但应证明它是独立的库很有用。 要求 Ruby 2.4以上版本,JRuby 9以上版本 Windows用户必须确保安装了ffi gem( >= 1.0.11 )才能使用ChildProcess。 用法 从ChildProcess.build返回的对象将实现ChildProcess::AbstractProcess 。 基本例子 process = ChildProcess . build ( "ruby" , "-e" , "sleep" ) # inherit stdout/stderr from parent... process . io . inherit! # ...or pass an IO process . io . stdout = Tempf

文件下载

资源详情

[{"title":"( 48 个子文件 46KB ) childprocess:用于管理子进程的跨平台Ruby库-源码","children":[{"title":"childprocess-master","children":[{"title":".document <span style='color:#111;'> 62B </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"childprocess","children":[{"title":"windows","children":[{"title":"structs.rb <span style='color:#111;'> 4.90KB </span>","children":null,"spread":false},{"title":"handle.rb <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false},{"title":"lib.rb <span style='color:#111;'> 11.13KB </span>","children":null,"spread":false},{"title":"process_builder.rb <span style='color:#111;'> 4.61KB </span>","children":null,"spread":false},{"title":"io.rb <span style='color:#111;'> 493B </span>","children":null,"spread":false},{"title":"process.rb <span style='color:#111;'> 2.77KB </span>","children":null,"spread":false}],"spread":true},{"title":"abstract_process.rb <span style='color:#111;'> 3.54KB </span>","children":null,"spread":false},{"title":"jruby","children":[{"title":"pump.rb <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"io.rb <span style='color:#111;'> 348B </span>","children":null,"spread":false},{"title":"process.rb <span style='color:#111;'> 4.92KB </span>","children":null,"spread":false}],"spread":true},{"title":"windows.rb <span style='color:#111;'> 861B </span>","children":null,"spread":false},{"title":"abstract_io.rb <span style='color:#111;'> 492B </span>","children":null,"spread":false},{"title":"unix.rb <span style='color:#111;'> 207B </span>","children":null,"spread":false},{"title":"tools","children":[{"title":"generator.rb <span style='color:#111;'> 3.65KB </span>","children":null,"spread":false}],"spread":true},{"title":"jruby.rb <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"unix","children":[{"title":"lib.rb <span style='color:#111;'> 5.76KB </span>","children":null,"spread":false},{"title":"posix_spawn_process.rb <span style='color:#111;'> 3.33KB </span>","children":null,"spread":false},{"title":"io.rb <span style='color:#111;'> 450B </span>","children":null,"spread":false},{"title":"platform","children":[{"title":"x86_64-linux.rb <span style='color:#111;'> 324B </span>","children":null,"spread":false},{"title":"i386-solaris.rb <span style='color:#111;'> 290B </span>","children":null,"spread":false},{"title":"i386-linux.rb <span style='color:#111;'> 324B </span>","children":null,"spread":false},{"title":"x86_64-macosx.rb <span style='color:#111;'> 289B </span>","children":null,"spread":false}],"spread":false},{"title":"fork_exec_process.rb <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false},{"title":"process.rb <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false}],"spread":true},{"title":"errors.rb <span style='color:#111;'> 966B </span>","children":null,"spread":false},{"title":"version.rb <span style='color:#111;'> 44B </span>","children":null,"spread":false}],"spread":false},{"title":"childprocess.rb <span style='color:#111;'> 4.84KB </span>","children":null,"spread":false}],"spread":true},{"title":"Gemfile <span style='color:#111;'> 885B </span>","children":null,"spread":false},{"title":"spec","children":[{"title":"platform_detection_spec.rb <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false},{"title":"pid_behavior.rb <span style='color:#111;'> 338B </span>","children":null,"spread":false},{"title":"childprocess_spec.rb <span style='color:#111;'> 10.71KB </span>","children":null,"spread":false},{"title":"jruby_spec.rb <span style='color:#111;'> 732B </span>","children":null,"spread":false},{"title":"spec_helper.rb <span style='color:#111;'> 5.31KB </span>","children":null,"spread":false},{"title":"io_spec.rb <span style='color:#111;'> 4.64KB </span>","children":null,"spread":false},{"title":"get_env.ps1 <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"windows_spec.rb <span style='color:#111;'> 744B </span>","children":null,"spread":false},{"title":"abstract_io_spec.rb <span style='color:#111;'> 276B </span>","children":null,"spread":false},{"title":"unix_spec.rb <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false}],"spread":true},{"title":"Rakefile <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 709B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 7.17KB </span>","children":null,"spread":false},{"title":".rspec <span style='color:#111;'> 8B </span>","children":null,"spread":false},{"title":"appveyor.yml <span style='color:#111;'> 859B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 207B </span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'> 2.70KB </span>","children":null,"spread":false},{"title":"childprocess.gemspec <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明