Sha256: 4af4472952ee99e1616d709cf13adfff51981edc0070a9440717a798ba0f0430
Contents?: true
Size: 814 Bytes
Versions: 35
Compression:
Stored size: 814 Bytes
Contents
# frozen_string_literal: true module Evostream module Events # Action inStreamClosed class InStreamClosed < Event def initialize(id_flux, config = {}) super(id_flux) @config = config end def execute super do |type_flux| klass = Evostream::Commands::Destroy.new(remove_config(type_flux)) Evostream.logger 'Send command to server EvoStream' @result = Evostream.send_command(klass.cmd) # yield if block_given? end end private attr_reader :config def remove_config(flux) if @config.empty? { group_name: "#{Evostream::Service.name}#{flux}", remove_hls_hds_files: 1 } else @config end end end end end
Version data entries
35 entries across 35 versions & 1 rubygems