Sha256: 73797285ee657bf9f6e8c0cca745a09d4b6a173ac5b2635bfd3f010be3a23010

Contents?: true

Size: 812 Bytes

Versions: 10

Compression:

Stored size: 812 Bytes

Contents

require 'hieracles/optparse'

module Hieracles
  module Options
    class Ppdb < Hieracles::Optparse

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

      def self.usage
        return <<-END

Usage: ppdb <command> [extra_args]

Available commands:
  node info <fqdn>
  node facts <fqdn>
  node resources <fqdn>
  facts <name> <value>
  same <name> <fqdn>
  factnames
  res[ources] <query>
              query following the form:
              type=sometype title=what
              type=sometype or type=another
              type~someregexp type!~excluded
        END
      end

    end
  end
end
    

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hieracles-0.4.2 lib/hieracles/options/ppdb.rb
hieracles-0.4.1 lib/hieracles/options/ppdb.rb
hieracles-0.4.0 lib/hieracles/options/ppdb.rb
hieracles-0.3.6 lib/hieracles/options/ppdb.rb
hieracles-0.3.5 lib/hieracles/options/ppdb.rb
hieracles-0.3.4 lib/hieracles/options/ppdb.rb
hieracles-0.3.3 lib/hieracles/options/ppdb.rb
hieracles-0.3.2 lib/hieracles/options/ppdb.rb
hieracles-0.3.1 lib/hieracles/options/ppdb.rb
hieracles-0.3.0 lib/hieracles/options/ppdb.rb