aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/leap_cli/config/object.rb7
1 files changed, 7 insertions, 0 deletions
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={})