class Fanforce::PluginFactory::CLI::Bundler include Fanforce::PluginFactory::CLI::Utils attr_reader :plugin def initialize(plugin) @plugin = plugin end def setup if Gem::Specification::find_all_by_name('bundler').empty? puts 'Installing Bundler... ' `gem install bundler` puts 'DONE' end console_command('bundle', true) puts 'DONE'.format(:green) end end