Sha256: 55372f90b087ae438de118368f095b03b8fb6b7801cefb774d3132f20c24c013

Contents?: true

Size: 386 Bytes

Versions: 5

Compression:

Stored size: 386 Bytes

Contents

module Catfish
  class CLI::Plugin
    attr_reader :options

    def initialize(options)
      @options = options
    end

    def run
      puts 'Installing plugins'
      builder = Dsl.new
      builder.eval_catfishfile

      builder.plugins.each do |plugin|
        system("vagrant plugin install #{plugin}") unless `vagrant plugin list`.include? plugin
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
catfish-0.0.8 lib/catfish/cli/plugin.rb
catfish-0.0.7 lib/catfish/cli/plugin.rb
catfish-0.0.6 lib/catfish/cli/plugin.rb
catfish-0.0.5 lib/catfish/cli/plugin.rb
catfish-0.0.4 lib/catfish/cli/plugin.rb