Module: OsCtl::ExportFS

Defined in:
lib/osctl/exportfs.rb,
lib/osctl/exportfs/cli.rb,
lib/osctl/exportfs/cgroup.rb,
lib/osctl/exportfs/config.rb,
lib/osctl/exportfs/export.rb,
lib/osctl/exportfs/server.rb,
lib/osctl/exportfs/version.rb,
lib/osctl/exportfs/runstate.rb,
lib/osctl/exportfs/config/nfsd.rb,
lib/osctl/exportfs/erb_template.rb,
lib/osctl/exportfs/config/exports.rb,
lib/osctl/exportfs/operations/base.rb,
lib/osctl/exportfs/config/top_level.rb,
lib/osctl/exportfs/operations/export/add.rb,
lib/osctl/exportfs/operations/server/exec.rb,
lib/osctl/exportfs/operations/server/list.rb,
lib/osctl/exportfs/operations/server/runsv.rb,
lib/osctl/exportfs/operations/server/spawn.rb,
lib/osctl/exportfs/operations/export/remove.rb,
lib/osctl/exportfs/operations/server/attach.rb,
lib/osctl/exportfs/operations/server/cgroup.rb,
lib/osctl/exportfs/operations/server/create.rb,
lib/osctl/exportfs/operations/server/delete.rb,
lib/osctl/exportfs/operations/runit/generate.rb,
lib/osctl/exportfs/operations/server/configure.rb,
lib/osctl/exportfs/operations/exportfs/generate.rb

Defined Under Namespace

Modules: Cli, Config, Operations, RunState Classes: CGroup, ErbTemplate, Export, Server

Constant Summary collapse

VERSION =
'24.05.0'.freeze

Class Method Summary collapse

Class Method Details

.enabled?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/osctl/exportfs.rb', line 16

def self.enabled?
  Dir.exist?(RunState::DIR)
end

.rootObject



12
13
14
# File 'lib/osctl/exportfs.rb', line 12

def self.root
  File.realpath(File.join(__dir__, '..', '..'))
end