PageRenderTime 11ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/vendor/gen-rb/fb303_types.rb

http://github.com/twitter/scribe
Ruby | 18 lines | 10 code | 3 blank | 5 comment | 0 complexity | 4f53586f5e92290336d42e5f02c231fa MD5 | raw file
Possible License(s): Apache-2.0
 1#
 2# Autogenerated by Thrift
 3#
 4# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 5#
 6
 7
 8module Fb_status
 9  DEAD = 0
10  STARTING = 1
11  ALIVE = 2
12  STOPPING = 3
13  STOPPED = 4
14  WARNING = 5
15  VALUE_MAP = {0 => "DEAD", 1 => "STARTING", 2 => "ALIVE", 3 => "STOPPING", 4 => "STOPPED", 5 => "WARNING"}
16  VALID_VALUES = Set.new([DEAD, STARTING, ALIVE, STOPPING, STOPPED, WARNING]).freeze
17end
18