Class: CastCaster::Deploy::Compose
- Inherits:
-
Object
- Object
- CastCaster::Deploy::Compose
- Includes:
- FFmpegServices
- Defined in:
- lib/castcaster/deploy/compose.rb
Instance Attribute Summary collapse
-
#with_traefik ⇒ Object
writeonly
Sets the attribute with_traefik.
Instance Method Summary collapse
- #compose_file ⇒ Object
-
#initialize(engine, channels) ⇒ Compose
constructor
A new instance of Compose.
- #write ⇒ Object
Methods included from FFmpegServices
Constructor Details
Instance Attribute Details
#with_traefik=(value) ⇒ Object (writeonly)
Sets the attribute with_traefik
5 6 7 |
# File 'lib/castcaster/deploy/compose.rb', line 5 def with_traefik=(value) @with_traefik = value end |
Instance Method Details
#compose_file ⇒ Object
19 20 21 |
# File 'lib/castcaster/deploy/compose.rb', line 19 def compose_file File.join(project_dir, 'compose.yml') end |
#write ⇒ Object
14 15 16 17 |
# File 'lib/castcaster/deploy/compose.rb', line 14 def write File.write(compose_file, render) compose_file end |