class Terminalwire::Client::Entitlement::RootPolicy

def binary_path

Path where the terminalwire binary stubs are stored.
def binary_path
  root_path.join("bin")
end

def binary_pattern

Pattern for the binary path.
def binary_pattern
  binary_path.join("*")
end

def initialize(*, **, &)

def initialize(*, **, &)
  # Make damn sure the authority is set to Terminalwire.
  super(*, authority: HOST, **, &)
  # Now setup special permitted paths.
  @paths.permit root_path
  @paths.permit root_pattern
  # Permit terminalwire to grant execute permissions to the binary stubs.
  @paths.permit binary_pattern, mode: BINARY_PATH_FILE_MODE
end

def root_pattern

terminalwire apps via `terminalwire install svbtle`, etc.
Grant access to the `~/.terminalwire/**/*` path so users can install
def root_pattern
  root_path.join("**/*")
end