From: elijah Date: Sat, 22 Nov 2014 18:00:02 +0000 (-0800) Subject: issue a warning if the platform.rb in the platform is incompatible with leap_cli X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=548f49182338151afcea3bada835ce646c367181;p=leap%2Fleap_cli.git issue a warning if the platform.rb in the platform is incompatible with leap_cli --- 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