From 548f49182338151afcea3bada835ce646c367181 Mon Sep 17 00:00:00 2001 From: elijah Date: Sat, 22 Nov 2014 10:00:02 -0800 Subject: issue a warning if the platform.rb in the platform is incompatible with leap_cli --- lib/leap/platform.rb | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.3