aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-11-22 10:00:02 -0800
committerelijah <elijah@riseup.net>2014-11-22 10:00:02 -0800
commit548f49182338151afcea3bada835ce646c367181 (patch)
treef8d4261e3ba59ed33434cf927bd9c3f9ab63f394 /lib
parentbc8e62a89d98648c9197f4feaeb1933441faba9f (diff)
downloadleap_cli-548f49182338151afcea3bada835ce646c367181.tar.gz
leap_cli-548f49182338151afcea3bada835ce646c367181.tar.bz2
issue a warning if the platform.rb in the platform is incompatible with leap_cli
Diffstat (limited to 'lib')
-rw-r--r--lib/leap/platform.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/leap/platform.rb b/lib/leap/platform.rb
index 6938fb3..3e1d138 100644
--- a/lib/leap/platform.rb
+++ b/lib/leap/platform.rb
@@ -75,6 +75,14 @@ module Leap
end
end
+ def method_missing(method, *args)
+ puts
+ puts "WARNING:"
+ puts " leap_cli is out of date and does not understand `#{method}`."
+ puts " called from: #{caller.first}"
+ puts " please upgrade to a newer leap_cli"
+ end
+
end
end