Sha256: b8b154222eda67fc6a725895e42b63ea2d0c79a748a7187d6622c06e40d382f1

Contents?: true

Size: 305 Bytes

Versions: 1

Compression:

Stored size: 305 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('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.4 lib/rdiff_simple.rb