Class: OsCtld::Config::Lxcfs
- Inherits:
-
Object
- Object
- OsCtld::Config::Lxcfs
- Defined in:
- lib/osctld/config.rb
Instance Attribute Summary collapse
- #max_worker_size ⇒ Integer readonly
- #path ⇒ String readonly
Instance Method Summary collapse
-
#initialize(cfg) ⇒ Lxcfs
constructor
A new instance of Lxcfs.
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_size ⇒ Integer (readonly)
50 51 52 |
# File 'lib/osctld/config.rb', line 50 def max_worker_size @max_worker_size end |
#path ⇒ String (readonly)
47 48 49 |
# File 'lib/osctld/config.rb', line 47 def path @path end |