diff options
author | elijah <elijah@riseup.net> | 2013-06-22 15:52:48 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-06-22 15:52:48 -0700 |
commit | 0ffdf42cf2171deb0bdd4c54f8281c1c1257ee86 (patch) | |
tree | b2a6ebe57fbca426104ae364a3a5381e731c4361 /lib/leap_cli/config/node.rb | |
parent | cae55de7bf25d60f4f504c658b936bbbd94ff464 (diff) |
improve `leap inspect`
Diffstat (limited to 'lib/leap_cli/config/node.rb')
-rw-r--r-- | lib/leap_cli/config/node.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/leap_cli/config/node.rb b/lib/leap_cli/config/node.rb index 15a2d3d..5b911bf 100644 --- a/lib/leap_cli/config/node.rb +++ b/lib/leap_cli/config/node.rb @@ -16,21 +16,6 @@ module LeapCli; module Config end # - # Make a copy of ourselves, except only including the specified keys. - # - # Also, the result is flattened to a single hash, so a key of 'a.b' becomes 'a_b' - # - def pick(*keys) - keys.map(&:to_s).inject(self.class.new(@manager)) do |hsh, key| - value = self.get(key) - if !value.nil? - hsh[key.gsub('.','_')] = value - end - hsh - end - end - - # # returns true if this node has an ip address in the range of the vagrant network # def vagrant? |