M lib/command.rb => lib/command.rb +2 -2
@@ 152,8 152,8 @@ class Command
@blk = blk
end
- def register(blather)
- blather.command(:execute?, node: @node, sessionid: nil) do |iq|
+ def register(blather, guards: [:execute?, node: @node, sessionid: nil])
+ blather.command(*guards) do |iq|
customer_repo = CustomerRepo.new
Execution.new(customer_repo, blather, @format_error, iq).execute(&@blk)
end
M sgx_jmp.rb => sgx_jmp.rb +1 -1
@@ 391,7 391,7 @@ Command.new(
Command.customer.then do |customer|
customer.stanza_from(Command.execution.iq)
end
- }.register(self).then(&CommandList.method(:register))
+ }.register(self, guards: [node: node]).then(&CommandList.method(:register))
end
Command.new(