From 9c131c1d84357175448496590e8d4e31e90118aa Mon Sep 17 00:00:00 2001 From: elijah Date: Sun, 31 Mar 2013 14:14:01 -0700 Subject: add ability to search for nodes using nil values. --- lib/leap_cli/config/macros.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/leap_cli/config/macros.rb') diff --git a/lib/leap_cli/config/macros.rb b/lib/leap_cli/config/macros.rb index 3c59356..5f90894 100644 --- a/lib/leap_cli/config/macros.rb +++ b/lib/leap_cli/config/macros.rb @@ -21,6 +21,9 @@ module LeapCli; module Config # # returns a list of nodes that match the same environment # + # if @node.environment is not set, we return other nodes + # where environment is not set. + # def nodes_like_me nodes[:environment => @node.environment] end -- cgit v1.2.3