]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
issue a warning if the platform.rb in the platform is incompatible with leap_cli
authorelijah <elijah@riseup.net>
Sat, 22 Nov 2014 18:00:02 +0000 (10:00 -0800)
committerelijah <elijah@riseup.net>
Sat, 22 Nov 2014 18:00:02 +0000 (10:00 -0800)
lib/leap/platform.rb

index 6938fb33f7a726d713a235f52bb00d4603650f3c..3e1d138e3515d423717dbd903432982a96df2761 100644 (file)
@@ -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