Class: Contained::Command::Base Abstract
- Inherits:
-
Object
- Object
- Contained::Command::Base
- Includes:
- SSHKit::DSL
- Defined in:
- lib/contained/command/base.rb
Overview
This class is abstract.
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#command ⇒ Array<Symbol,String>
E.g.
-
#initialize(environment:, config:) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(environment:, config:) ⇒ Base
Returns a new instance of Base.
17 18 19 20 |
# File 'lib/contained/command/base.rb', line 17 def initialize(environment:, config:) @environment = environment @config = config end |
Class Method Details
.command ⇒ Object
11 12 13 |
# File 'lib/contained/command/base.rb', line 11 def self.command(...) new(...).command end |
Instance Method Details
#command ⇒ Array<Symbol,String>
Returns e.g. [:docker, :login, “hub.docker.com”, “-u”, “root”, “-p”, “secret”].
23 24 25 |
# File 'lib/contained/command/base.rb', line 23 def command raise NotImplementedError, "#execute! undefined" end |