just pushed some client updates to trunk including the patch that
addresses this - Justin can you test and then we can close this jira?
marios
On 23/02/11 16:26, Justin Clift (JIRA) wrote:
deltacloudc command line arguments on Win7
------------------------------------------
Key: DTACLOUD-20
URL: https://issues.apache.org/jira/browse/DTACLOUD-20
Project: DeltaCloud
Issue Type: Bug
Components: Client (Ruby)
Environment: Windows 7 x64 with Ruby 1.8.6
Reporter: Justin Clift
Assignee: David Lutterkort
Priority: Minor
Just tried out deltacloud-client on Win7 using Ruby 1.8.6 to see how functional
it is.
Some interesting basic usability stuff shows up that we'll need to look into at
some point.
Without arguments:
C:\Users\user>deltacloudc
C:/Ruby186/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/abstract_response.rb:50:
warning: parenthesize argument(s) for future version
C:/Ruby186/lib/ruby/1.8/uri/common.rb:436:in `split': bad URI(is not URI?):
(URI::InvalidURIError)
from C:/Ruby186/lib/ruby/1.8/uri/common.rb:485:in `parse'
from
C:/Ruby186/lib/ruby/gems/1.8/gems/deltacloud-client-0.1.1/bin/deltacloudc:66
from C:/Ruby186/bin/deltacloudc:19:in `load'
from C:/Ruby186/bin/deltacloudc:19
The same happens on OSX too, so I'm guessing it's a generic problem with the
gem.
With "--help" seems ok:
C:\Users\user>deltacloudc --help
C:/Ruby186/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/abstract_response.rb:50:
warning: parenthesize argument(s) for future version
Usage:
deltacloudc collection operation [options]
URL format:
API_URL=http://[user]:[password]@[api_url][port][/uri]
Options:
-i, --id ID ID for operation
-d, --image-id ID Image ID
-a, --arch ARCH Architecture (x86, x86_64)
-p HARDWARE_PROFILE Hardware Profile
--hardware-profile
-n, --name NAME Name (for instance eg.)
-s, --state STATE Instance state (RUNNING, STOPPED)
-u, --url URL API url ($API_URL variable)
-l, --list List collections/operations
-h, --help Display this screen
-v, --version Display API version
-V, --verbose Print verbose messages
However, the windows way of asking for command line help doesn't:
C:\Users\user>deltacloudc /?
C:/Ruby186/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/abstract_response.rb:50:
warning: parenthesize argument(s) for future version
C:/Ruby186/lib/ruby/1.8/uri/common.rb:436:in `split': bad URI(is not URI?):
(URI::InvalidURIError)
from C:/Ruby186/lib/ruby/1.8/uri/common.rb:485:in `parse'
from
C:/Ruby186/lib/ruby/gems/1.8/gems/deltacloud-client-0.1.1/bin/deltacloudc:66
from C:/Ruby186/bin/deltacloudc:19:in `load'
from C:/Ruby186/bin/deltacloudc:19
Not sure how easy/difficult it would be to fix any of the above. Hopefully
simple. ;)