Sha256: 2056d2c662f6f6a9c4826b6871a91b47bb514c5cdbab9227d015120fd75b17cf

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.6 lib/rdiff_simple.rb