Sha256: 4f62533632ef3f9e397fcce100de0098ebcb41e93c3c8331627400b738eb6354

Contents?: true

Size: 713 Bytes

Versions: 2

Compression:

Stored size: 713 Bytes

Contents

# frozen_string_literal: true

require 'avm/instances/process'
require 'eac_ruby_utils/core_ext'

module Avm
  module EacWebappBase0
    module Instances
      module Processes
        class WebServer < ::Avm::Instances::Process
          def available?
            instance.apache_resource.present?
          end

          def enable
            apache_resource_change(__method__)
          end

          def disable
            apache_resource_change(__method__)
          end

          private

          def apache_resource_change(action)
            instance.apache_resource.send(action)
            instance.platform_instance.apache.service(:reload)
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
avm-eac_webapp_base0-0.18.0 lib/avm/eac_webapp_base0/instances/processes/web_server.rb
eac_tools-0.70.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/processes/web_server.rb