Class: Coursemology::Evaluator::CLI
- Inherits:
-
Object
- Object
- Coursemology::Evaluator::CLI
- Defined in:
- lib/coursemology/evaluator/cli.rb
Defined Under Namespace
Classes: Options
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.start(argv) ⇒ Object
8 9 10 |
# File 'lib/coursemology/evaluator/cli.rb', line 8 def self.start(argv) new.start(argv) end |
Instance Method Details
#run(argv) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/coursemology/evaluator/cli.rb', line 16 def run(argv) = optparse!(argv) Coursemology::Evaluator.config.poll_interval = ::ISO8601::Duration.new("PT#{.poll_interval}".upcase).to_seconds # Must include the time designator T if hours/minutes/seconds are required. Coursemology::Evaluator.config.image_lifetime = ::ISO8601::Duration.new("P#{.image_lifetime}".upcase).to_seconds Coursemology::Evaluator::Client.initialize(.host, .api_user_email, .api_token) Coursemology::Evaluator::Client.new(.one_shot).run end |
#start(argv) ⇒ Object
12 13 14 |
# File 'lib/coursemology/evaluator/cli.rb', line 12 def start(argv) run(argv) end |