Class: OsCtl::ExportFS::Operations::Server::List

Inherits:
Base
  • Object
show all
Defined in:
lib/osctl/exportfs/operations/server/list.rb

Instance Method Summary collapse

Methods inherited from Base

run

Instance Method Details

#executeObject



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/osctl/exportfs/operations/server/list.rb', line 5

def execute
  ret = []

  Dir.entries(RunState::SERVERS).each do |v|
    next if %w[. ..].include?(v)

    ret << OsCtl::ExportFS::Server.new(v)
  end

  ret
end