Class: EventMachine::FS

Inherits:
Object
  • Object
show all
Defined in:
lib/em-fs/fs.rb,
lib/em-fs/version.rb,
lib/em-fs/fs/command.rb,
lib/em-fs/fs/rsync_command.rb

Defined Under Namespace

Classes: Command, RsyncCommand

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.find(*args, &block) ⇒ Object



16
17
18
19
20
21
# File 'lib/em-fs/fs.rb', line 16

def find *args, &block
  options = { }.merge args.extract_options!
  cmd = EM::SystemCommand.new 'find'
  cmd << args
  cmd.execute &block
end

.rsync(*args, &block) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/em-fs/fs.rb', line 8

def rsync *args, &block
  options = { }.merge args.extract_options!
  cmd = EM::FS::RsyncCommand.new
  cmd << :progress
  cmd << args
  cmd.execute &block
end