Class: Anvil::App::HostScaler

Inherits:
Struct
  • Object
show all
Includes:
ConfigurationReader, StandardProcedure::Async::Actor
Defined in:
lib/anvil/app/host_scaler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ConfigurationReader

#configuration_for, #configuration_for_app, #environment_for, #environment_for_app, #hosts, #user_for, #validate

Instance Attribute Details

#configurationObject

Returns the value of attribute configuration

Returns:

  • (Object)

    the current value of configuration



9
10
11
# File 'lib/anvil/app/host_scaler.rb', line 9

def configuration
  @configuration
end

#hostObject

Returns the value of attribute host

Returns:

  • (Object)

    the current value of host



9
10
11
# File 'lib/anvil/app/host_scaler.rb', line 9

def host
  @host
end

Instance Method Details

#callObject



13
14
15
# File 'lib/anvil/app/host_scaler.rb', line 13

def call
  scale_processes
end