Class: Splunk::Pickaxe::EventTypes

Inherits:
Objects
  • Object
show all
Defined in:
lib/splunk/pickaxe/objects/eventtypes.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

Constructor Details

This class inherits a constructor from Splunk::Pickaxe::Objects

Instance Method Details

#entity_dirObject



15
16
17
# File 'lib/splunk/pickaxe/objects/eventtypes.rb', line 15

def entity_dir
  DIR
end

#entity_file_path(splunk_entity) ⇒ Object



19
20
21
22
23
24
# File 'lib/splunk/pickaxe/objects/eventtypes.rb', line 19

def entity_file_path(splunk_entity)
  File.join(
    pickaxe_config.execution_path, entity_dir,
    entity_file_name(splunk_entity)
  )
end

#splunk_entity_keysObject



26
27
28
# File 'lib/splunk/pickaxe/objects/eventtypes.rb', line 26

def splunk_entity_keys
  Splunk::Pickaxe::EVENT_TYPES_KEYS
end

#splunk_resourceObject



11
12
13
# File 'lib/splunk/pickaxe/objects/eventtypes.rb', line 11

def splunk_resource
  %w[saved eventtypes]
end