Class: Indocker::ContainerDirectives::Ready
- Inherits:
-
Base
- Object
- Directives::Base
- Base
- Indocker::ContainerDirectives::Ready
- Defined in:
- lib/indocker/directives/container_directives/ready.rb
Constant Summary collapse
- DEFAULT_SLEEP =
0.1
- DEFAULT_TIMEPUT =
10
Instance Attribute Summary collapse
-
#ready_block ⇒ Object
Returns the value of attribute ready_block.
-
#sleep ⇒ Object
Returns the value of attribute sleep.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
- #after_start? ⇒ Boolean
-
#initialize(sleep: DEFAULT_SLEEP, timeout: DEFAULT_TIMEPUT, ready_block:) ⇒ Ready
constructor
A new instance of Ready.
Methods inherited from Base
#after_stop?, #before_start?, #before_stop?
Methods inherited from Directives::Base
#build_directive?, #container_directive?, #partial?, #prepare_directive?
Constructor Details
#initialize(sleep: DEFAULT_SLEEP, timeout: DEFAULT_TIMEPUT, ready_block:) ⇒ Ready
Returns a new instance of Ready.
7 8 9 10 11 |
# File 'lib/indocker/directives/container_directives/ready.rb', line 7 def initialize(sleep: DEFAULT_SLEEP, timeout: DEFAULT_TIMEPUT, ready_block:) @sleep = sleep @timeout = timeout @ready_block = ready_block end |
Instance Attribute Details
#ready_block ⇒ Object
Returns the value of attribute ready_block.
2 3 4 |
# File 'lib/indocker/directives/container_directives/ready.rb', line 2 def ready_block @ready_block end |
#sleep ⇒ Object
Returns the value of attribute sleep.
2 3 4 |
# File 'lib/indocker/directives/container_directives/ready.rb', line 2 def sleep @sleep end |
#timeout ⇒ Object
Returns the value of attribute timeout.
2 3 4 |
# File 'lib/indocker/directives/container_directives/ready.rb', line 2 def timeout @timeout end |
Instance Method Details
#after_start? ⇒ Boolean
13 14 15 |
# File 'lib/indocker/directives/container_directives/ready.rb', line 13 def after_start? true end |