brgmnn/sandboxy

View on GitHub
lib/sandboxy/language/base.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Sandboxy::Language::Base
  def run(path)
    file = "/app/#{File.basename(path)}"

    Sandboxy::Container::Image.run(
      name.downcase.split('::').last,
      ['/entrypoint.sh', file],
      path
    )
  end

  def pass
    raise NotImplementedError
  end

  def fail
    raise NotImplementedError
  end

  def assert
    raise NotImplementedError
  end
end