lib/sandboxy/language/base.rb
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