diff options
author | elijah <elijah@riseup.net> | 2013-02-08 19:39:34 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-02-08 19:39:34 -0800 |
commit | 2cc1bf46d9486352ebb5c785201ed7753cbfc65a (patch) | |
tree | aeb33a2b0749c71c1b88327b07aaea9f2578710e /lib | |
parent | d3b772a99b6370f8117ee5099719d1b7e41b6b66 (diff) | |
download | leap_cli-2cc1bf46d9486352ebb5c785201ed7753cbfc65a.tar.gz leap_cli-2cc1bf46d9486352ebb5c785201ed7753cbfc65a.tar.bz2 |
added 'nodes_like_me' macro
Diffstat (limited to 'lib')
-rw-r--r-- | lib/leap_cli/config/object.rb | 7 |
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={}) |