文件名称:greenletters:Ruby 控制台自动化 a la Expect
文件大小:16KB
文件格式:ZIP
更新时间:2024-06-27 14:39:14
Ruby
Greenletters 自述文件 概要 请参阅介绍性博客文章。 require 'greenletters' adv = Greenletters :: Process . new ( "adventure" , :transcript => $stdout ) # Install a handler which may be triggered at any time adv . on ( :output , /welcome to adventure/i ) do | process , match_data | adv << "no \n " end puts "Starting adventure..." adv . start! # Wait for the specified pattern before proceeding adv . wait_for ( :ou
【文件预览】:
greenletters-master
----.gitignore(465B)
----README.org(4KB)
----bin()
--------greenletters(134B)
----version.txt(6B)
----examples()
--------cucumber()
--------adventure.rb(853B)
----spec()
--------greenletters_spec.rb(90B)
--------spec_helper.rb(118B)
----greenletters.gemspec(2KB)
----script()
--------console(210B)
----lib()
--------greenletters.rb(18KB)
--------greenletters()
----History.txt(118B)
----Gemfile(55B)
----Rakefile(849B)
----Gemfile.lock(505B)