Class: Vx::Worker::Configuration
- Inherits:
-
Hashr
- Object
- Hashr
- Vx::Worker::Configuration
- Extended by:
- Hashr::EnvDefaults
- Defined in:
- lib/vx/worker/configuration.rb
Constant Summary collapse
- @@null_logger =
Logger.new("/dev/null")
Instance Method Summary collapse
- #connector_options ⇒ Object
- #connector_remote_dir ⇒ Object
- #null_logger ⇒ Object
- #path_prefix ⇒ Object
- #run ⇒ Object
- #timeout ⇒ Object
Instance Method Details
#connector_options ⇒ Object
52 53 54 |
# File 'lib/vx/worker/configuration.rb', line 52 def self[self.run] end |
#connector_remote_dir ⇒ Object
56 57 58 |
# File 'lib/vx/worker/configuration.rb', line 56 def connector_remote_dir [:remote_dir] end |
#null_logger ⇒ Object
48 49 50 |
# File 'lib/vx/worker/configuration.rb', line 48 def null_logger @@null_logger end |
#path_prefix ⇒ Object
44 45 46 |
# File 'lib/vx/worker/configuration.rb', line 44 def path_prefix self[:path_prefix] || Dir.pwd end |
#run ⇒ Object
40 41 42 |
# File 'lib/vx/worker/configuration.rb', line 40 def run self[:run].to_sym end |
#timeout ⇒ Object
36 37 38 |
# File 'lib/vx/worker/configuration.rb', line 36 def timeout self[:timeout].to_i end |