Sha256: d2bfb33ad76be7d523915f80a3af560723045a122104ff8d0ea01d98eee6eecf

Contents?: true

Size: 559 Bytes

Versions: 1

Compression:

Stored size: 559 Bytes

Contents

require_relative 'plugins'

module Retrospec
  class Cli
    include Retrospec::Plugins

    def self.list_available_plugins
        Retrospec::Cli.new.available_plugins.each do |name, plugin_data|
        puts "#{name}: #{plugin_data['project_url']}"
        puts "\tDescription: #{plugin_data['description']}"
        puts "\tInstallation: gem install #{plugin_data['gem']} --no-rdoc --no-ri"
      end
    end

    def self.list_installed_plugins
      Retrospec::Cli.new.installed_plugins do |spec|
        puts "#{spec.name}"
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
retrospec-0.1.0 lib/retrospec/cli.rb