Class: Shiplane::Deploy::Configuration
- Inherits:
-
Object
- Object
- Shiplane::Deploy::Configuration
- Defined in:
- lib/shiplane/deploy/configuration.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#env ⇒ Object
Returns the value of attribute env.
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #docker_command(role) ⇒ Object
-
#initialize(name, options, env) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(name, options, env) ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 |
# File 'lib/shiplane/deploy/configuration.rb', line 6 def initialize(name, , env) @name = name = @env = env end |
Instance Attribute Details
#env ⇒ Object
Returns the value of attribute env.
4 5 6 |
# File 'lib/shiplane/deploy/configuration.rb', line 4 def env @env end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/shiplane/deploy/configuration.rb', line 4 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/shiplane/deploy/configuration.rb', line 4 def end |
Instance Method Details
#docker_command(role) ⇒ Object
12 13 14 |
# File 'lib/shiplane/deploy/configuration.rb', line 12 def docker_command(role) role.requires_sudo? ? "sudo docker" : "docker" end |