Module: HireFire::Resource
Instance Attribute Summary collapse
-
#log_queue_metrics ⇒ Boolean
True if the queue metrics option is enabled.
Instance Method Summary collapse
-
#configure {|HireFire::Resource| ... } ⇒ Object
Configures HireFire::Resource.
-
#dyno(name, &block) ⇒ Object
Will be used through block-style configuration with the ‘configure` method.
-
#dynos ⇒ Array
The configured dynos.
Instance Attribute Details
#log_queue_metrics ⇒ Boolean
Returns True if the queue metrics option is enabled.
16 17 18 |
# File 'lib/hirefire/resource.rb', line 16 def log_queue_metrics @log_queue_metrics ||= false end |
Instance Method Details
#configure {|HireFire::Resource| ... } ⇒ Object
Configures HireFire::Resource.
38 39 40 |
# File 'lib/hirefire/resource.rb', line 38 def configure yield self end |
#dyno(name, &block) ⇒ Object
Will be used through block-style configuration with the ‘configure` method.
47 48 49 |
# File 'lib/hirefire/resource.rb', line 47 def dyno(name, &block) dynos << { :name => name, :quantity => block } end |
#dynos ⇒ Array
Returns The configured dynos.
22 23 24 |
# File 'lib/hirefire/resource.rb', line 22 def dynos @dynos ||= [] end |