summaryrefslogtreecommitdiff
path: root/lib/leap_cli/config
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2017-06-30 00:24:38 -0700
committerMicah Anderson <micah@riseup.net>2017-07-18 15:42:00 -0700
commitc0ddb0da43910e9a064e08acf424b2f2a0ccdd88 (patch)
tree9bd77eccf0717d2d1e56788c2a360134aeedec4e /lib/leap_cli/config
parenta34d1b14a9a0874bfd6a0c84fa6ac64f2bc3f55a (diff)
by default, new providers will now require invites. requires leap_cli 4173154a177b00c11a36b3168b1ce12af59f04af or later (>1.9.2). resolves #8474. create new invites with `leap run invite`
Diffstat (limited to 'lib/leap_cli/config')
-rw-r--r--lib/leap_cli/config/object_list.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/leap_cli/config/object_list.rb b/lib/leap_cli/config/object_list.rb
index 80f89d92..815864e4 100644
--- a/lib/leap_cli/config/object_list.rb
+++ b/lib/leap_cli/config/object_list.rb
@@ -49,6 +49,10 @@ module LeapCli
end
end
+ def first
+ ObjectList.new(self.values.first)
+ end
+
def exclude(node)
list = self.dup
list.delete(node.name)