Class: CodewarsCli::Cli
- Inherits:
-
Thor
- Object
- Thor
- CodewarsCli::Cli
- Defined in:
- lib/codewars_cli/cli.rb
Instance Method Summary collapse
- #finalize(kata_name) ⇒ Object
- #next_kata ⇒ Object
- #submit_kata(kata_name) ⇒ Object
- #user(username_or_id) ⇒ Object
Instance Method Details
#finalize(kata_name) ⇒ Object
25 26 27 |
# File 'lib/codewars_cli/cli.rb', line 25 def finalize(kata_name) Finalize.find(kata_name, [:language]) end |
#next_kata ⇒ Object
13 14 15 |
# File 'lib/codewars_cli/cli.rb', line 13 def next_kata Kata.fetch([:language]).create_file end |
#submit_kata(kata_name) ⇒ Object
19 20 21 |
# File 'lib/codewars_cli/cli.rb', line 19 def submit_kata(kata_name) SubmitKata.find(kata_name, [:language]).upload_kata end |