lib/serfx/utils/async_job.rb
# obtain current state information about the task as JSON
#
# @return [String] JSON string representing current state of the task
obtain current state information about the task as JSON
obtain current state information about the task as JSON
def state_info
        if exists?
          File.read(state_file)
        else
          JSON.generate(status: 'absent')
        end
      end
def state_info if exists? File . read ( state_file ) else JSON . generate ( status : 'absent' ) end end
obtain current state information about the task as JSON
obtain current state information about the task as JSON
JSON string representing current state of the task
JSON string representing current state of the task
String