Class: Ring::SQA::Nodes

Inherits:
Object
  • Object
show all
Defined in:
lib/ring/sqa/nodes.rb

Constant Summary collapse

FILE =
'/etc/hosts'

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#allObject (readonly)

Returns the value of attribute all.



10
11
12
# File 'lib/ring/sqa/nodes.rb', line 10

def all
  @all
end

Instance Method Details

#get(node) ⇒ Object



16
17
18
# File 'lib/ring/sqa/nodes.rb', line 16

def get node
  (@all[node] or {})
end

#runObject



12
13
14
# File 'lib/ring/sqa/nodes.rb', line 12

def run
  Thread.new { @inotify.run }
end