Sha256: bae760014b087e0e1a0516041a47b2d00864f4cf84c1e38ad9a5b172a8220871
Contents?: true
Size: 884 Bytes
Versions: 1
Compression:
Stored size: 884 Bytes
Contents
require 'date' class InternalFunc def datetimenow() d_curr = DateTime.now time_zone = 'Europe/Minsk' # DateTime.new # .in_time_zone(time_zone) # .change(year: d_curr.year, month: d_curr.month, day: d_curr.day, hour: d_curr.hour, min: d_curr.min, sec: d_curr.sec) d_curr.to_s end def printer_texter(text, log_level) begin mess = {:datetime => datetimenow, :sdk => "freewifi", :sdk_version => Freewifi::VERSION, :message => text} p mess rescue p "Failed print message" end end def hub_tunnelname_generator(tunnel_id, company_name) comp_name = company_name "#{tunnel_id.to_s}_eoip_hub_auto_#{comp_name}" end def company_check(compname) compname2="" if compname.include?(" ") compname2 = compname.gsub(" ","") else compname2 = compname end compname2 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
freewifi-0.1.2 | lib/freewifi/additional/additional_functions.rb |