Class: CastCaster::Deploy::Compose

Inherits:
Object
  • Object
show all
Includes:
FFmpegServices
Defined in:
lib/castcaster/deploy/compose.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from FFmpegServices

#build_ffmpeg_services

Constructor Details

#initialize(engine, channels) ⇒ Compose

Returns a new instance of Compose.



7
8
9
10
11
12
# File 'lib/castcaster/deploy/compose.rb', line 7

def initialize(engine, channels)
  @engine = engine
  @channels = channels
  @cfg = Config.new.load
  @with_traefik = false
end

Instance Attribute Details

#with_traefik=(value) ⇒ Object (writeonly)

Sets the attribute with_traefik

Parameters:

  • value

    the value to set the attribute with_traefik to.



5
6
7
# File 'lib/castcaster/deploy/compose.rb', line 5

def with_traefik=(value)
  @with_traefik = value
end

Instance Method Details

#compose_fileObject



19
20
21
# File 'lib/castcaster/deploy/compose.rb', line 19

def compose_file
  File.join(project_dir, 'compose.yml')
end

#writeObject



14
15
16
17
# File 'lib/castcaster/deploy/compose.rb', line 14

def write
  File.write(compose_file, render)
  compose_file
end