class DependencyCheck
Public Instance Methods
has_dependencies?()
click to toggle source
# File lib/ubnt/usg/restore/dependency_check.rb, line 15 def has_dependencies? [ :has_filesystem_utils?, :has_filesystem_utils? ].all do |check| self.public_send(check) end end
has_extraction_utils?()
click to toggle source
# File lib/ubnt/usg/restore/dependency_check.rb, line 11 def has_extraction_utils? `which unzip` end
has_filesystem_utils?()
click to toggle source
# File lib/ubnt/usg/restore/dependency_check.rb, line 7 def has_filesystem_utils? `which mke2fs` end
has_partition_utils?()
click to toggle source
# File lib/ubnt/usg/restore/dependency_check.rb, line 3 def has_partition_utils? `which parted`.any? end