Class: Hako::Scheduler
- Inherits:
-
Object
- Object
- Hako::Scheduler
- Defined in:
- lib/hako/scheduler.rb
Direct Known Subclasses
Defined Under Namespace
Classes: ValidationError
Instance Method Summary collapse
- #configure(_options) ⇒ Object
- #deploy(_containers) ⇒ Object
-
#initialize(app_id, options, volumes:, scripts:, dry_run:, force:, timeout:) ⇒ Scheduler
constructor
A new instance of Scheduler.
- #remove ⇒ Object
- #rollback ⇒ Object
- #status ⇒ Object
- #stop ⇒ Object
- #validation_error!(message) ⇒ Object private
Constructor Details
#initialize(app_id, options, volumes:, scripts:, dry_run:, force:, timeout:) ⇒ Scheduler
Returns a new instance of Scheduler.
17 18 19 20 21 22 23 24 25 |
# File 'lib/hako/scheduler.rb', line 17 def initialize(app_id, , volumes:, scripts:, dry_run:, force:, timeout:) @app_id = app_id @volumes = volumes @scripts = scripts @dry_run = dry_run @force = force @timeout = timeout configure() end |
Instance Method Details
#configure(_options) ⇒ Object
28 |
# File 'lib/hako/scheduler.rb', line 28 def configure(); end |
#deploy(_containers) ⇒ Object
31 32 33 |
# File 'lib/hako/scheduler.rb', line 31 def deploy(_containers) raise NotImplementedError end |
#remove ⇒ Object
43 44 45 |
# File 'lib/hako/scheduler.rb', line 43 def remove raise NotImplementedError end |
#rollback ⇒ Object
35 36 37 |
# File 'lib/hako/scheduler.rb', line 35 def rollback raise NotImplementedError end |
#status ⇒ Object
39 40 41 |
# File 'lib/hako/scheduler.rb', line 39 def status raise NotImplementedError end |
#stop ⇒ Object
47 48 49 |
# File 'lib/hako/scheduler.rb', line 47 def stop raise NotImplementedError end |
#validation_error!(message) ⇒ Object (private)
54 55 56 |
# File 'lib/hako/scheduler.rb', line 54 def validation_error!() raise ValidationError.new() end |