Sha256: ab81c0f58bf68a17838ebc545fecbb4478a48c350e55073b131b5e034975c676

Contents?: true

Size: 797 Bytes

Versions: 32

Compression:

Stored size: 797 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 enabled?
            instance.apache_resource.enabled?
          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

32 entries across 32 versions & 2 rubygems

Version Path
avm-eac_webapp_base0-0.20.1 lib/avm/eac_webapp_base0/instances/processes/web_server.rb
eac_tools-0.94.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/processes/web_server.rb
avm-eac_webapp_base0-0.20.0 lib/avm/eac_webapp_base0/instances/processes/web_server.rb
eac_tools-0.93.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/processes/web_server.rb
avm-eac_webapp_base0-0.19.0 lib/avm/eac_webapp_base0/instances/processes/web_server.rb
eac_tools-0.87.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/processes/web_server.rb
avm-eac_webapp_base0-0.18.4 lib/avm/eac_webapp_base0/instances/processes/web_server.rb
eac_tools-0.86.8 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/processes/web_server.rb
eac_tools-0.84.2 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/processes/web_server.rb
avm-eac_webapp_base0-0.18.3 lib/avm/eac_webapp_base0/instances/processes/web_server.rb
eac_tools-0.84.1 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/processes/web_server.rb
eac_tools-0.84.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/processes/web_server.rb
eac_tools-0.83.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/processes/web_server.rb
eac_tools-0.82.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/processes/web_server.rb
eac_tools-0.81.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/processes/web_server.rb
eac_tools-0.80.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/processes/web_server.rb
eac_tools-0.79.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/processes/web_server.rb
eac_tools-0.78.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/processes/web_server.rb
eac_tools-0.77.1 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/processes/web_server.rb
eac_tools-0.77.0 sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/instances/processes/web_server.rb