Class: OsCtl::ExportFS::Cli::Export
- Inherits:
-
Command
- Object
- Lib::Cli::Command
- Command
- OsCtl::ExportFS::Cli::Export
show all
- Defined in:
- lib/osctl/exportfs/cli/export.rb
Instance Method Summary
collapse
Methods inherited from Command
#initialize, run
Instance Method Details
#list ⇒ Object
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/osctl/exportfs/cli/export.rb', line 5
def list
servers.each do |s|
cfg = s.open_config
cfg.exports.each do |ex|
puts "server = #{s.name}"
puts "dir = #{ex.dir}"
puts "as = #{ex.as}"
puts "host = #{ex.host}"
puts "options = #{ex.options}"
puts
end
end
end
|