Sha256: 17e8e77969b1394aea5a1d9c17873c11446306b62db94bdbc98c2328dd5f24ec

Contents?: true

Size: 511 Bytes

Versions: 4

Compression:

Stored size: 511 Bytes

Contents

require 'em-fs/fs/command'
require 'em-fs/fs/rsync_command'

module EventMachine
  class FS
    class << self

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

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

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
em-fs-0.1.2 lib/em-fs/fs.rb
em-fs-0.1.1 lib/em-fs/fs.rb
em-fs-0.1.0 lib/em-fs/fs.rb
em-fs-0.0.1 lib/em-fs/fs.rb