Sha256: 8fc9cab232e28ec1ab41a6aa2e2c388be5bc62dfb4ce071219851fdf3625840c

Contents?: true

Size: 481 Bytes

Versions: 2

Compression:

Stored size: 481 Bytes

Contents

require 'hieracles/optparse'

module Hieracles
  module Options
    class Ppdb < Hieracles::Optparse

      def available_options
        {
          version: {
            has_arg: false,
            aliases: ['v', 'version']
          }
        }
      end

      def self.usage
        return <<-END

Usage: ppdb <endpoint> <command> [extra_args]

Available commands:
  node info <fqdn>
  node facts <fqdn>
  node resources <fqdn>

        END
      end

    end
  end
end
    

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hieracles-0.2.2 lib/hieracles/options/ppdb.rb
hieracles-0.2.1 lib/hieracles/options/ppdb.rb