Class: Dry::SwarmFunction
- Inherits:
-
Object
- Object
- Dry::SwarmFunction
- Defined in:
- lib/dry-stack/stack.rb
Instance Method Summary collapse
- #context_host(host) ⇒ Object
- #context_name(name) ⇒ Object
- #env(variables) ⇒ Object
-
#initialize(swarm) ⇒ SwarmFunction
constructor
A new instance of SwarmFunction.
- #stack_name(name) ⇒ Object
Constructor Details
#initialize(swarm) ⇒ SwarmFunction
Returns a new instance of SwarmFunction.
62 |
# File 'lib/dry-stack/stack.rb', line 62 def initialize(swarm, &); @swarm = swarm; instance_exec(&) end |
Instance Method Details
#context_host(host) ⇒ Object
64 |
# File 'lib/dry-stack/stack.rb', line 64 def context_host(host)= @swarm[:context_host] = host |
#context_name(name) ⇒ Object
65 |
# File 'lib/dry-stack/stack.rb', line 65 def context_name(name)= @swarm[:context_name] = name |
#env(variables) ⇒ Object
63 |
# File 'lib/dry-stack/stack.rb', line 63 def env(variables)= @swarm[:environment].merge! variables |
#stack_name(name) ⇒ Object
66 |
# File 'lib/dry-stack/stack.rb', line 66 def stack_name(name)= @swarm[:stack_name] = name |