module

PlaceOS::Edge

Constants

APP_NAME = "PlaceOS Edge"
CLIENT_SECRET = ENV["PLACE_EDGE_KEY"]? || (production? ? abort("missing PLACE_EDGE_KEY in environment") : "edge-1000_secret")

Secret used to register with PlaceOS

Log = ::Log.for(self)
LOG_STDOUT = ActionController.default_backend
PLACE_URI = URI.parse(ENV["PLACE_URI"]? || "https://localhost:8443".tap do |v| Log.warn do "missing PLACE_URI in environment, using #{v}" end end)

URI of PlaceOS instance

PROD = ENV["SG_ENV"]? == "production"
VERSION = {{ (`shards version \"/tmp/tmp.OPeAoK/src/src/placeos-edge\"`).chomp.stringify.downcase }}

Class methods

production?
Source

Nested types