Module: Quaff::Utils
- Defined in:
- lib/utils.rb
Class Method Summary collapse
Class Method Details
.local_ip ⇒ Object
7 8 9 |
# File 'lib/utils.rb', line 7 def Utils.local_ip Facter.value("ipaddress") end |
.new_branch ⇒ Object
19 20 21 |
# File 'lib/utils.rb', line 19 def Utils.new_branch "z9hG4bK#{Time.new.to_f}" end |
.new_call_id ⇒ Object
15 16 17 |
# File 'lib/utils.rb', line 15 def Utils.new_call_id "#{pid}_#{Time.new.to_i}@#{local_ipv4}" end |
.pid ⇒ Object
11 12 13 |
# File 'lib/utils.rb', line 11 def Utils.pid Process.pid end |