Class: Contestify::Judge::Local
- Inherits:
-
Object
- Object
- Contestify::Judge::Local
- Defined in:
- lib/contestify/judges/local/local.rb
Instance Attribute Summary collapse
-
#problems_path ⇒ Object
Returns the value of attribute problems_path.
-
#problems_paths ⇒ Object
Returns the value of attribute problems_paths.
-
#working_root_path ⇒ Object
Returns the value of attribute working_root_path.
Instance Method Summary collapse
-
#initialize(problems_path) ⇒ Local
constructor
A new instance of Local.
Constructor Details
#initialize(problems_path) ⇒ Local
Returns a new instance of Local.
8 9 10 11 12 13 14 |
# File 'lib/contestify/judges/local/local.rb', line 8 def initialize(problems_path) @problems_path = problems_path @working_root_path = File.join(Dir.pwd, "contestify") FileUtils.mkdir_p @working_root_path copy_problems @problems_paths = Contestify::Local::Configuration.configure!(@working_root_path) end |
Instance Attribute Details
#problems_path ⇒ Object
Returns the value of attribute problems_path.
6 7 8 |
# File 'lib/contestify/judges/local/local.rb', line 6 def problems_path @problems_path end |
#problems_paths ⇒ Object
Returns the value of attribute problems_paths.
6 7 8 |
# File 'lib/contestify/judges/local/local.rb', line 6 def problems_paths @problems_paths end |
#working_root_path ⇒ Object
Returns the value of attribute working_root_path.
6 7 8 |
# File 'lib/contestify/judges/local/local.rb', line 6 def working_root_path @working_root_path end |