Sha256: 1e01b2259b2b9a479e61bbda0debcdd73e75863aff75277e03fb400bcba67607

Contents?: true

Size: 410 Bytes

Versions: 34

Compression:

Stored size: 410 Bytes

Contents

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

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
fanforce-plugin-factory-2.0.0.rc29 lib/fanforce/plugin_factory/cli/lib/bundler.rb
fanforce-plugin-factory-2.0.0.rc28 lib/fanforce/plugin_factory/cli/lib/bundler.rb
fanforce-plugin-factory-2.0.0.rc27 lib/fanforce/plugin_factory/cli/lib/bundler.rb
fanforce-plugin-factory-2.0.0.rc26 lib/fanforce/plugin_factory/cli/lib/bundler.rb
fanforce-plugin-factory-2.0.0.rc25 lib/fanforce/plugin_factory/cli/lib/bundler.rb
fanforce-plugin-factory-2.0.0.rc24 lib/fanforce/plugin_factory/cli/lib/bundler.rb
fanforce-plugin-factory-2.0.0.rc23 lib/fanforce/plugin_factory/cli/lib/bundler.rb
fanforce-plugin-factory-2.0.0.rc22 lib/fanforce/plugin_factory/cli/lib/bundler.rb
fanforce-plugin-factory-2.0.0.rc21 lib/fanforce/plugin_factory/cli/lib/bundler.rb
fanforce-plugin-factory-2.0.0.rc19 lib/fanforce/plugin_factory/cli/lib/bundler.rb
fanforce-plugin-factory-2.0.0.rc18 lib/fanforce/plugin_factory/cli/lib/bundler.rb
fanforce-plugin-factory-2.0.0.rc17 lib/fanforce/plugin_factory/cli/lib/bundler.rb
fanforce-plugin-factory-2.0.0.rc16 lib/fanforce/plugin_factory/cli/lib/bundler.rb
fanforce-plugin-factory-2.0.0.rc15 lib/fanforce/plugin_factory/cli/lib/bundler.rb
fanforce-plugin-factory-2.0.0.rc13 lib/fanforce/plugin_factory/cli/lib/bundler.rb
fanforce-plugin-factory-2.0.0.rc12 lib/fanforce/plugin_factory/cli/lib/bundler.rb
fanforce-plugin-factory-2.0.0.rc11 lib/fanforce/plugin_factory/cli/lib/bundler.rb
fanforce-plugin-factory-2.0.0.rc10 lib/fanforce/plugin_factory/cli/lib/bundler.rb
fanforce-plugin-factory-2.0.0.rc9 lib/fanforce/plugin_factory/cli/lib/bundler.rb
fanforce-plugin-factory-2.0.0.rc8 lib/fanforce/plugin_factory/cli/lib/bundler.rb