Sha256: 2419dd085e29075c3c978a76dbe5aa099b68f75e50f593f4481c9aebb2e2acc5

Contents?: true

Size: 310 Bytes

Versions: 1

Compression:

Stored size: 310 Bytes

Contents

require "rdiff_simple/version"

module RdiffSimple

  class NotInstalledError < Exception; end

  def self.execute(*args)
    raise NotInstalledError, 'rdiff-backup not installed' unless installed?

    system('nice rdiff-backup', *args)
  end

  def self.installed?
    system('which rdiff-backup')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rdiff-simple-0.0.5 lib/rdiff_simple.rb