Sha256: f7bf5f454a9c8b589a47057645d31f44edb6bfbd5b5ad19b6c15071548ca17e9

Contents?: true

Size: 329 Bytes

Versions: 1

Compression:

Stored size: 329 Bytes

Contents

class DependencyCheck

  def has_partition_utils?
    `which parted`.any?
  end

  def has_filesystem_utils?
    `which mke2fs`
  end

  def has_extraction_utils?
    `which unzip`
  end

  def has_dependencies?
    [ :has_filesystem_utils?, :has_filesystem_utils? ].all do |check|
      self.public_send(check)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ubnt-usg-restore-0.1.0 lib/ubnt/usg/restore/dependency_check.rb