Class: Treehouse::Runner
- Inherits:
-
Object
- Object
- Treehouse::Runner
- Defined in:
- lib/treehouse-dl/runner.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
Instance Method Details
#run ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/treehouse-dl/runner.rb', line 12 def run if !@opts.email.nil? and !@opts.password.nil? and !@opts.url.nil? Downloader.valid(@opts.url) if Downloader.login(@opts.email,@opts.password) else puts "Account and url informations can't be blank".red exit end end |