Class: Facter::Options
Constant Summary
DefaultOptions::DEFAULT_LOG_LEVEL
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
#validate_configs
#augment_with_helper_options!
#augment_with_priority_options!
#augment_with_config_file_options!
#augment_with_defaults!, #augment_with_to_hash_defaults!
Constructor Details
Returns a new instance of Options.
15
16
17
18
|
# File 'lib/framework/core/options.rb', line 15
def initialize
@options = {}
@priority_options = {}
end
|
Instance Attribute Details
#priority_options ⇒ Object
13
14
15
|
# File 'lib/framework/core/options.rb', line 13
def priority_options
@priority_options
end
|
Class Method Details
.method_missing(name, *args, &block) ⇒ Object
51
52
53
54
55
|
# File 'lib/framework/core/options.rb', line 51
def self.method_missing(name, *args, &block)
Facter::Options.instance.send(name.to_s, *args, &block)
rescue NoMethodError
super
end
|
.respond_to_missing?(name, include_private) ⇒ Boolean
57
|
# File 'lib/framework/core/options.rb', line 57
def self.respond_to_missing?(name, include_private) end
|
Instance Method Details
#[](option) ⇒ Object
31
32
33
|
# File 'lib/framework/core/options.rb', line 31
def [](option)
@options.fetch(option, nil)
end
|
#custom_dir ⇒ Object
39
40
41
|
# File 'lib/framework/core/options.rb', line 39
def custom_dir
@options[:custom_dir]
end
|
#custom_dir? ⇒ Boolean
35
36
37
|
# File 'lib/framework/core/options.rb', line 35
def custom_dir?
@options[:custom_dir] && @options[:custom_facts]
end
|
#external_dir ⇒ Object
47
48
49
|
# File 'lib/framework/core/options.rb', line 47
def external_dir
@options[:external_dir]
end
|
#external_dir? ⇒ Boolean
43
44
45
|
# File 'lib/framework/core/options.rb', line 43
def external_dir?
@options[:external_dir] && @options[:external_facts]
end
|
#get ⇒ Object
27
28
29
|
# File 'lib/framework/core/options.rb', line 27
def get
@options
end
|
#refresh(user_query = []) ⇒ Object
20
21
22
23
24
25
|
# File 'lib/framework/core/options.rb', line 20
def refresh(user_query = [])
@user_query = user_query
initialize_options
@options
end
|