-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--debug, --username, --server, --password appears to be broken #134
Comments
Ah yes, I noticed this too while trying to write a test for |
I'll take a look and see if there is a straightforward solution. |
Would be nice if I didn't have to litter the classes with |
Hmm maybe have http://stackoverflow.com/a/14212020/638434
Though the docs say to use |
Hmmmm. |
Ok, it might not a problem with the class inheritance. When I swap out that L66 in aptly_command.rb for
it works. So, it appears to be an issue with the options.debug is |
I think I have boiled it down to
|
Interesting. Is https://github.com/sepulworld/aptly_cli/blob/master/bin/aptly-cli#L54 getting executed? |
It is... when I do some 'puts' debugging I see it come through. When I inspect the 'options' object
returns empty line |
I wonder if the commander |
If I were at a keyboard, I think I'd put a |
Maybe, but I also see similar behavior with other options.
Looks like they are all missed upon respond_to? check. Using Ruby 2.3.0... |
Ok, Ill checkout with pry, good call. |
So, I think why the tests passed originally is because we create the options object with responds_to? works for this object... versus in aptly_command.rb the options object comes from Commander and inspect (seen in pry) shows it as: responds_to? doesn't work for us here.... |
Fixed by #137 ? |
Yes, looks good. I'll close this and work on some functional test using serverspec. |
Looks like global options in aptly_command.rb are not working presently.
debug_output $stdout
L66 in aptly_command.rb doesn't appear to respond and even if you setdebug_output $stdout
directly in class AptlyCommand it isn't used when running http queries in let's say aptly_repoThe above command should include HTTP debug output from HTTParty.
The text was updated successfully, but these errors were encountered: