[Command] Use RubyGems to load plugins from gems.

This commit is contained in:
Eloy Durán
2014-01-27 16:31:26 +01:00
parent de7c7732e8
commit 5afb52f99c

View File

@@ -24,6 +24,8 @@
require 'motion/version'
require 'motion/error'
require 'rubygems'
$:.unshift File.expand_path('../../../vendor/CLAide/lib', __FILE__)
require 'claide'
@@ -49,12 +51,10 @@ module Motion
require 'motion/command/support'
require 'motion/command/update'
# TODO support RubyGems plugins?
# require 'rubygems'
# self.plugin_prefix = 'motion'
self.abstract_command = true
self.command = 'motion'
self.plugin_prefix = 'motion'
self.description = 'RubyMotion lets you develop native iOS and OS X ' \
'applications using the awesome Ruby language.'