Sha256: 48f0c45911937b33e6e86d802663b23e408d5ea35ebd60b73deaf308b271ee7a

Contents?: true

Size: 566 Bytes

Versions: 4

Compression:

Stored size: 566 Bytes

Contents

module Outliers
  module CLI
    class Providers
      def providers
        option_parser.parse!
        list = Outliers::Providers.name_map
        list.each_pair do |k,v|
          puts k
          v.credential_arguments.each_pair { |k,v| puts "  #{k}: #{v}" }
        end
      end

      def command_name
        'providers'
      end

      def command_summary
        'List available providers.'
      end

      def option_parser
        OptionParser.new do |opts|
          opts.banner = "Usage: outliers providers"
        end
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
outliers-0.2.0 lib/outliers/cli/providers.rb
outliers-0.1.1 lib/outliers/cli/providers.rb
outliers-0.1.0 lib/outliers/cli/providers.rb
outliers-0.0.1 lib/outliers/cli/providers.rb