Class: Avm::EacWebappBase0::Instances::Processes::WebServer

Inherits:
Instances::Process
  • Object
show all
Defined in:
lib/avm/eac_webapp_base0/instances/processes/web_server.rb

Instance Method Summary collapse

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/avm/eac_webapp_base0/instances/processes/web_server.rb', line 11

def available?
  instance.apache_resource.present?
end

#disableObject



23
24
25
# File 'lib/avm/eac_webapp_base0/instances/processes/web_server.rb', line 23

def disable
  apache_resource_change(__method__)
end

#enableObject



15
16
17
# File 'lib/avm/eac_webapp_base0/instances/processes/web_server.rb', line 15

def enable
  apache_resource_change(__method__)
end

#enabled?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/avm/eac_webapp_base0/instances/processes/web_server.rb', line 19

def enabled?
  instance.apache_resource.enabled?
end