Class: Hieracles::Options::Ppdb
Instance Attribute Summary
#options, #payload
Class Method Summary
collapse
Instance Method Summary
collapse
#initialize, #optionkeys
Class Method Details
.usage ⇒ Object
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/hieracles/options/ppdb.rb', line 20
def self.usage
return "\nUsage: ppdb <command> [extra_args]\n\nAvailable commands:\n node info <fqdn>\n node facts <fqdn>\n node resources <fqdn>\n facts <name> <value>\n same <name> <fqdn>\n factnames\n res[ources] <query>\n query following the form:\n type=sometype title=what\n type=sometype or type=another\n type~someregexp type!~excluded\n END\nend\n"
|
Instance Method Details
#available_options ⇒ Object
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/hieracles/options/ppdb.rb', line 7
def available_options
{
version: {
has_arg: false,
aliases: ['v', 'version']
},
format: {
has_arg: true,
aliases: ['f', 'format']
}
}
end
|