lib/desi/process_manager.rb
# Release number of the currently running cluster
#
# @example
#   Desi::ProcessManager.new.running_version #=> "0.19.9"
#
#
# @return [String,nil]
Release number of the currently running cluster
Release number of the currently running cluster
def running_version
      begin
        JSON.parse(@client.get('/').body)["version"]["number"]
      rescue
        nil
      end
    end
def running_version begin JSON . parse ( @client . get ( '/' ) . body ) [ "version" ] [ "number" ] rescue nil end end
Release number of the currently running cluster
Release number of the currently running cluster
None
String,nil
example
:ProcessManager.new.running_version #=> "0.19.9"
: ProcessManager . new . running_version # = > " 0 . 19 . 9 "