lib/arborist/client.rb in arborist-0.5.0 vs lib/arborist/client.rb in arborist-0.6.0
- old
+ new
@@ -198,12 +198,12 @@
return Arborist::TreeAPI.request( :unsubscribe, {subscription_id: subid}, nil )
end
### Remove a node
- def prune( *args )
- request = self.make_prune_request( *args )
+ def prune( **args )
+ request = self.make_prune_request( **args )
response = self.send_tree_api_request( request )
return response
end
@@ -215,12 +215,12 @@
return Arborist::TreeAPI.request( :prune, {identifier: identifier}, nil )
end
### Add a new node to the tree.
- def graft( *args )
- request = self.make_graft_request( *args )
+ def graft( **args )
+ request = self.make_graft_request( **args )
response = self.send_tree_api_request( request )
return response
end
@@ -238,12 +238,12 @@
return Arborist::TreeAPI.request( :graft, header, attributes )
end
### Modify operational attributes of a node.
- def modify( *args )
- request = self.make_modify_request( *args )
+ def modify( **args )
+ request = self.make_modify_request( **args )
self.send_tree_api_request( request )
return true
end
@@ -259,12 +259,12 @@
### Mark a node as 'acknowledged' if it's down, or 'disabled' if
### it's up. (A pre-emptive acknowledgement.) Requires the node
### +identifier+, an acknowledgement +message+, and +sender+. You
### can optionally include a +via+ (source), and override the default
### +time+ of now.
- def acknowledge( *args )
- request = self.make_acknowledge_request( *args )
+ def acknowledge( **args )
+ request = self.make_acknowledge_request( **args )
self.send_tree_api_request( request )
return true
end
alias_method :ack, :acknowledge
@@ -282,11 +282,11 @@
return Arborist::TreeAPI.request( :ack, {identifier: identifier}, ack )
end
### Clear the acknowledgement for a node.
- def clear_acknowledgement( *args )
- request = self.make_unack_request( *args )
+ def clear_acknowledgement( **args )
+ request = self.make_unack_request( **args )
self.send_tree_api_request( request )
return true
end
alias_method :unack, :clear_acknowledgement
alias_method :clear_ack, :clear_acknowledgement