Sha256: e7fa54f49b115f670cf2b2fa392c6c507a5495aa5dae80e06e42bc5c82ae4bbe
Contents?: true
Size: 463 Bytes
Versions: 10
Compression:
Stored size: 463 Bytes
Contents
module Sct class Helpers def self.ingressUrl ip = `kubectl get ingress` if ip.nil? || ip.empty? puts "Can't fetch ip from kubectl".yellow return nil end match = ip.scan(/((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3})/); return match[0].first end def self.to_hash(str) Hash[ str.split("\n").map{|i|i.split('=')} ] end end end
Version data entries
10 entries across 10 versions & 1 rubygems