Module: Sparrow::Miscel

Included in:
Queues::Memory, Queues::Sqlite, Runner, Server
Defined in:
lib/sparrow/utils.rb

Instance Method Summary collapse

Instance Method Details

#base_dirObject



100
101
102
# File 'lib/sparrow/utils.rb', line 100

def base_dir
  Sparrow.base_dir
end

#log_pathObject



104
105
106
# File 'lib/sparrow/utils.rb', line 104

def log_path
  Sparrow.log_path
end

#loggerObject



112
113
114
# File 'lib/sparrow/utils.rb', line 112

def logger
  Sparrow.logger
end

#optionsObject



92
93
94
# File 'lib/sparrow/utils.rb', line 92

def options
  Sparrow.options
end

#options=(ob) ⇒ Object



96
97
98
# File 'lib/sparrow/utils.rb', line 96

def options=(ob)
  Sparrow.options = ob
end

#pid_dirObject



108
109
110
# File 'lib/sparrow/utils.rb', line 108

def pid_dir
  Sparrow.pid_dir
end