From 2cc1bf46d9486352ebb5c785201ed7753cbfc65a Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 8 Feb 2013 19:39:34 -0800 Subject: added 'nodes_like_me' macro --- lib/leap_cli/config/object.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/leap_cli/config/object.rb b/lib/leap_cli/config/object.rb index e039660..9172fa7 100644 --- a/lib/leap_cli/config/object.rb +++ b/lib/leap_cli/config/object.rb @@ -187,6 +187,13 @@ module LeapCli global.nodes end + # + # returns a list of nodes that match similar production level (production, local, testing, etc) + # + def nodes_like_me + nodes[:production => @node.production, :local => @node.local] + end + class FileMissing < Exception attr_accessor :path, :options def initialize(path, options={}) -- cgit v1.2.3