Sha256: 9a2321158fbeb17af97576716d4b7f913436b6712f0476fa08b01d261a3c8b2e

Contents?: true

Size: 358 Bytes

Versions: 6

Compression:

Stored size: 358 Bytes

Contents

require 'rye'

  
## can execute commands in a batch
r = Rye::Box.new
file = "/tmp/rye-#{rand.to_s}"
r.batch do
  touch file
end
r.file_exists? file
#=> true

## a batch can take arguments
r = Rye::Box.new
file = r.batch("/tmp/rye-#{rand.to_s}") do |f|
  touch f
  f
end
r.file_exists? file
#=> true



r = Rye::Box.new
r.disable_safe_mode
r.rm '/tmp/rye-*'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rye-0.9.13 try/12_batch_tryouts.rb
rye-0.9.12 try/12_batch_tryouts.rb
rye-0.9.11 try/12_batch_tryouts.rb
rye-0.9.10 try/12_batch_tryouts.rb
rye-0.9.9 try/12_batch_tryouts.rb
rye-0.9.8 try/12_batch_tryouts.rb