Class: Serverspec::Type::Zfs
- Inherits:
-
Base
- Object
- Base
- Serverspec::Type::Zfs
show all
- Defined in:
- lib/serverspec/type/zfs.rb
Instance Attribute Summary
Attributes inherited from Base
#name
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #inspect, #to_ary
Instance Method Details
#exists? ⇒ Boolean
3
4
5
|
# File 'lib/serverspec/type/zfs.rb', line 3
def exists?
@runner.check_zfs_exists(@name)
end
|
#has_property?(property) ⇒ Boolean
7
8
9
|
# File 'lib/serverspec/type/zfs.rb', line 7
def has_property?(property)
@runner.check_zfs_has_property(@name, property)
end
|
#property ⇒ Object
15
16
17
18
|
# File 'lib/serverspec/type/zfs.rb', line 15
def property
get_property if @property.nil?
@property
end
|
#to_s ⇒ Object
11
12
13
|
# File 'lib/serverspec/type/zfs.rb', line 11
def to_s
'ZFS'
end
|