Method: RightScale::InstanceState.log_file

Defined in:
lib/instance/instance_state.rb

.log_file(state) ⇒ Object

Log file to be used for given instance state

Parameters

state(String)

Instance state, one of STATES

Return

log(String)

Log file path

nil

Log file should not be changed



455
456
457
458
459
460
# File 'lib/instance/instance_state.rb', line 455

def self.log_file(state)
  log_file = case state
    when 'booting'         then BOOT_LOG_FILE
    when 'decommissioning' then DECOMMISSION_LOG_FILE
  end
end