lib/rundock/node.rb in rundock-1.0.6 vs lib/rundock/node.rb in rundock-1.0.7
- old
+ new
@@ -13,10 +13,10 @@
@operations = []
@hooks = []
end
def add_operation(ope)
- @operations = [] unless @operations
+ @operations ||= []
@operations << ope
end
def run
Logger.formatter.on_rec