Sha256: 1724af568c243dc9c47679c59549e53ed9488e93495dfc1c663274a927037768
Contents?: true
Size: 612 Bytes
Versions: 15
Compression:
Stored size: 612 Bytes
Contents
module DevboxLauncher class Description def initialize(yaml) @desc = YAML.load(yaml) end def ip return @ip if @ip network_interface = network_interfaces.first access_configs = network_interface["accessConfigs"] access_config = access_configs.find do |c| c["kind"] == "compute#accessConfig" end @ip = access_config["natIP"] end def status @status ||= @desc["status"] end def network_interfaces @network_interfaces ||= @desc["networkInterfaces"] end def running? status == "RUNNING" end end end
Version data entries
15 entries across 15 versions & 1 rubygems