Module: SQSPoller::Util

Defined in:
lib/sqspoller/util.rb

Class Method Summary collapse

Class Method Details

.config_filesObject



5
6
7
8
9
10
11
# File 'lib/sqspoller/util.rb', line 5

def config_files
  cfg_file_paths = ['/etc/sqspoller/config.yml']
  if ENV['HOME']
    cfg_file_paths << '~/.sqspoller/config.yml'
  end
  cfg_file_paths
end

.get_timestamp_utcObject



13
14
15
# File 'lib/sqspoller/util.rb', line 13

def get_timestamp_utc
  Time.now.utc
end