Class: Contestify::Contest
- Inherits:
-
Thor
- Object
- Thor
- Contestify::Contest
show all
- Includes:
- Util
- Defined in:
- lib/contestify/contest.rb
Instance Method Summary
collapse
Methods included from Util
#check_dependencies, #clean_dir!, #system?
Instance Method Details
#check ⇒ Object
20
21
22
23
|
# File 'lib/contestify/contest.rb', line 20
def check
check_dependencies
puts green "Everything looks ok. You may now use Contestify."
end
|
#coci(problems_url, judge_url, judge_password) ⇒ Object
6
7
8
9
10
|
# File 'lib/contestify/contest.rb', line 6
def coci(problems_url, judge_url, judge_password)
contest = Contestify::Judge::Coci.new problems_url
Contestify::Uploader.upload!(judge_url, judge_password, contest.problems_paths)
clean_dir! contest.working_root_path
end
|
#local(problems_path, judge_url, judge_password) ⇒ Object
13
14
15
16
17
|
# File 'lib/contestify/contest.rb', line 13
def local(problems_path, judge_url, judge_password)
contest = Contestify::Judge::Local.new problems_path
Contestify::Uploader.upload!(judge_url, judge_password, contest.problems_paths)
clean_dir! contest.working_root_path
end
|