Class: Serverspec::Type::Zfs

Inherits:
Base
  • Object
show all
Defined in:
lib/serverspec/type/zfs.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Serverspec::Type::Base

Instance Method Details

#exists?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/serverspec/type/zfs.rb', line 4

def exists?
  backend.check_zfs(@name)
end

#has_property?(property) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/serverspec/type/zfs.rb', line 8

def has_property?(property)
  backend.check_zfs(@name, property)
end

#to_sObject



12
13
14
# File 'lib/serverspec/type/zfs.rb', line 12

def to_s
  'ZFS'
end