Module: Hearken::Indexing::Executor

Includes:
Tagged
Included in:
FfmpegFile
Defined in:
lib/hearken/indexing/executor.rb

Constant Summary

Constants included from Tagged

Tagged::FIELDS, Tagged::FILE_FIELDS, Tagged::TAG_FIELDS

Instance Method Summary collapse

Methods included from Tagged

#no_tag_fields?, #to_a

Instance Method Details

#debug(message) ⇒ Object



17
18
19
# File 'lib/hearken/indexing/executor.rb', line 17

def debug message
  puts message if ENV['DEBUG']
end

#execute(command) ⇒ Object



12
13
14
15
# File 'lib/hearken/indexing/executor.rb', line 12

def execute command
  debug command
  `#{command} 2>&1`
end

#extract_file_attributes(path) ⇒ Object



7
8
9
10
# File 'lib/hearken/indexing/executor.rb', line 7

def extract_file_attributes path
  @path = path.to_s
  @timestamp = path.timestamp
end