Module: Facter::Util::Partitions
- Defined in:
- lib/facter/util/partitions.rb,
lib/facter/util/partitions/linux.rb,
lib/facter/util/partitions/openbsd.rb
Defined Under Namespace
Modules: Linux, NoImplementation, OpenBSD
Constant Summary
collapse
- IMPLEMENTATIONS =
{
'Linux' => Linux,
'OpenBSD' => OpenBSD,
}
Class Method Summary
collapse
Class Method Details
.available? ⇒ Boolean
40
41
42
|
# File 'lib/facter/util/partitions.rb', line 40
def self.available?
!self.list.empty?
end
|
.filesystem(partition) ⇒ Object
36
37
38
|
# File 'lib/facter/util/partitions.rb', line 36
def self.filesystem(partition)
implementation.filesystem(partition)
end
|
.list ⇒ Object
20
21
22
|
# File 'lib/facter/util/partitions.rb', line 20
def self.list
implementation.list
end
|
.mount(partition) ⇒ Object
32
33
34
|
# File 'lib/facter/util/partitions.rb', line 32
def self.mount(partition)
implementation.mount(partition)
end
|
.size(partition) ⇒ Object
28
29
30
|
# File 'lib/facter/util/partitions.rb', line 28
def self.size(partition)
implementation.size(partition)
end
|
.uuid(partition) ⇒ Object
24
25
26
|
# File 'lib/facter/util/partitions.rb', line 24
def self.uuid(partition)
implementation.uuid(partition)
end
|