orchestra:轻松编排复杂的操作

时间:2021-05-20 16:25:01
【文件属性】:
文件名称:orchestra:轻松编排复杂的操作
文件大小:41KB
文件格式:ZIP
更新时间:2021-05-20 16:25:01
Ruby 乐队 通过简单,轻巧的框架将多个命令或查询对象无缝链接在一起。 用法 这是一个没有很多上下文的简单示例: operation = Orchestra :: Operation . new do step :make_array do depends_on :up_to provides :array execute do limit . times . to_a end end step :apply_fizzbuzz do iterates_over :array provides :fizzbuzz execute do | num | next if num == 0 # filter 0 from the output str = '' str << "Fizz
【文件预览】:
orchestra-master
----.gitignore(140B)
----README.md(19KB)
----bin()
--------rake(364B)
----test()
--------integration()
--------support()
--------examples()
--------unit()
--------test_helper.rb(348B)
--------lib()
----Gemfile(183B)
----.bundle()
--------config(56B)
----LICENSE.txt(1KB)
----orchestra.gemspec(988B)
----tmp()
--------.keep(0B)
----.travis.yml(30B)
----lib()
--------orchestra()
--------ntl()
--------orchestra.rb(327B)
----Rakefile(405B)

网友评论