aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-03-08 15:53:58 -0800
committerelijah <elijah@riseup.net>2014-03-08 15:53:58 -0800
commit8ee7d8bf8ca1dc3a4c77a6b0896aff5fa3736ad8 (patch)
tree0f6a1f6902a88b33c54904e304c64d591d22c7ed /lib
parent3c0ce709ac6321a90f6daababb9b053b3e0cb756 (diff)
downloadleap_cli-8ee7d8bf8ca1dc3a4c77a6b0896aff5fa3736ad8.tar.gz
leap_cli-8ee7d8bf8ca1dc3a4c77a6b0896aff5fa3736ad8.tar.bz2
fixed bug when platform.rb doesn't define reserved_usernames
Diffstat (limited to 'lib')
-rw-r--r--lib/leap/platform.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/leap/platform.rb b/lib/leap/platform.rb
index 7a28bbd..d97650b 100644
--- a/lib/leap/platform.rb
+++ b/lib/leap/platform.rb
@@ -17,6 +17,8 @@ module Leap
attr_accessor :reserved_usernames
def define(&block)
+ # some sanity defaults:
+ @reserved_usernames = []
self.instance_eval(&block)
end