ruby-launchd:使用Ruby控制Mac OS X服务

时间:2021-04-30 01:52:09
【文件属性】:
文件名称:ruby-launchd:使用Ruby控制Mac OS X服务
文件大小:10KB
文件格式:ZIP
更新时间:2021-04-30 01:52:09
Ruby Ruby-Launchd-使用Ruby控制Mac OS X服务 Ruby-Launchd就像launchctl(或著名的午餐)一样。 它使您可以使用Ruby在Mac OS X上轻松创建,启动和停止服务。 安装 将此行添加到您的应用程序的Gemfile中: gem 'launchd' 然后执行: $ bundle 或将其自己安装为: $ gem install launchd 用法 初始化服务对象: service = Launchd :: Service . new , label : 'com.example.chunkybacon' , # Required program_arguments : %w( /usr/sbin/chunkyd --bacon ) , # Required keep_alive : tru
【文件预览】:
ruby-launchd-master
----.travis.yml(76B)
----bin()
--------console(332B)
--------setup(115B)
----launchd.gemspec(1KB)
----Rakefile(117B)
----Gemfile(92B)
----.rspec(31B)
----spec()
--------launchd_spec.rb(127B)
--------spec_helper.rb(134B)
--------launchd()
----.ruby-version(7B)
----.gitignore(87B)
----lib()
--------launchd.rb(116B)
--------launchd()
----CODE_OF_CONDUCT.md(1KB)
----README.md(2KB)
----LICENSE.txt(1KB)

网友评论