Class: Vx::Worker::Configuration

Inherits:
Hashr
  • Object
show all
Extended by:
Hashr::EnvDefaults
Defined in:
lib/vx/worker/configuration.rb

Constant Summary collapse

@@null_logger =
Logger.new("/dev/null")

Instance Method Summary collapse

Instance Method Details

#connector_optionsObject



52
53
54
# File 'lib/vx/worker/configuration.rb', line 52

def connector_options
  self[self.run]
end

#connector_remote_dirObject



56
57
58
# File 'lib/vx/worker/configuration.rb', line 56

def connector_remote_dir
  connector_options[:remote_dir]
end

#null_loggerObject



48
49
50
# File 'lib/vx/worker/configuration.rb', line 48

def null_logger
  @@null_logger
end

#path_prefixObject



44
45
46
# File 'lib/vx/worker/configuration.rb', line 44

def path_prefix
  self[:path_prefix] || Dir.pwd
end

#runObject



40
41
42
# File 'lib/vx/worker/configuration.rb', line 40

def run
  self[:run].to_sym
end

#timeoutObject



36
37
38
# File 'lib/vx/worker/configuration.rb', line 36

def timeout
  self[:timeout].to_i
end