Class: Splunk::Pickaxe::Macros
- Inherits:
-
Objects
- Object
- Objects
- Splunk::Pickaxe::Macros
show all
- Defined in:
- lib/splunk/pickaxe/objects/macros.rb
Instance Attribute Summary
Attributes inherited from Objects
#environment, #pickaxe_config, #service
Instance Method Summary
collapse
Methods inherited from Objects
#config, #create, #entity_file_extensions, #entity_file_name, #find, #initialize, #name, #needs_update?, #remove_pickaxe_config, #save, #save_config, #skip?, #splunk_config, #sync, #update, #write_to_file
Instance Method Details
#entity_dir ⇒ Object
16
17
18
|
# File 'lib/splunk/pickaxe/objects/macros.rb', line 16
def entity_dir
DIR
end
|
#entity_file_path(splunk_entity) ⇒ Object
20
21
22
23
24
25
|
# File 'lib/splunk/pickaxe/objects/macros.rb', line 20
def entity_file_path(splunk_entity)
File.join(
pickaxe_config.execution_path, entity_dir,
entity_file_name(splunk_entity)
)
end
|
#splunk_entity_keys ⇒ Object
27
28
29
|
# File 'lib/splunk/pickaxe/objects/macros.rb', line 27
def splunk_entity_keys
Splunk::Pickaxe::MACRO_KEYS
end
|
#splunk_resource ⇒ Object
12
13
14
|
# File 'lib/splunk/pickaxe/objects/macros.rb', line 12
def splunk_resource
%w[admin macros]
end
|