Class: OsCtld::Config::Lxcfs

Inherits:
Object
  • Object
show all
Defined in:
lib/osctld/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cfg) ⇒ Lxcfs

Returns a new instance of Lxcfs.



52
53
54
55
# File 'lib/osctld/config.rb', line 52

def initialize(cfg)
  @path = cfg['path']
  @max_worker_size = cfg.fetch('max_worker_size', 50)
end

Instance Attribute Details

#max_worker_sizeInteger (readonly)

Returns:

  • (Integer)


50
51
52
# File 'lib/osctld/config.rb', line 50

def max_worker_size
  @max_worker_size
end

#pathString (readonly)

Returns:

  • (String)


47
48
49
# File 'lib/osctld/config.rb', line 47

def path
  @path
end