Class: Contained::Task::Base Abstract
- Inherits:
-
Object
- Object
- Contained::Task::Base
- Includes:
- SSHKit::DSL
- Defined in:
- lib/contained/task/base.rb
Overview
This class is abstract.
Class Method Summary collapse
Instance Method Summary collapse
- #execute! ⇒ Object
-
#initialize(stdin:, stdout:, environment:, config:) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(stdin:, stdout:, environment:, config:) ⇒ Base
Returns a new instance of Base.
19 20 21 22 23 24 |
# File 'lib/contained/task/base.rb', line 19 def initialize(stdin:, stdout:, environment:, config:) @stdin = stdin @stdout = stdout @environment = environment @config = config end |
Class Method Details
.execute! ⇒ Object
11 12 13 |
# File 'lib/contained/task/base.rb', line 11 def self.execute!(...) new(...).execute! end |
Instance Method Details
#execute! ⇒ Object
26 27 28 |
# File 'lib/contained/task/base.rb', line 26 def execute! raise NotImplementedError, "#execute! undefined" end |