You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Marios Andreou (JIRA)" <ji...@apache.org> on 2011/02/23 19:12:38 UTC

[jira] Commented: (DTACLOUD-20) deltacloudc command line arguments on Win7

    [ https://issues.apache.org/jira/browse/DTACLOUD-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12998480#comment-12998480 ] 

Marios Andreou commented on DTACLOUD-20:
----------------------------------------

I've patched deltacloudc to resolve this issue. I'll send a patch out to the deltacloud-dev list for review before we close this jira

> deltacloudc command line arguments on Win7
> ------------------------------------------
>
>                 Key: DTACLOUD-20
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-20
>             Project: DeltaCloud
>          Issue Type: Bug
>         Environment: Windows 7 x64 with Ruby 1.8.6
>            Reporter: Justin Clift
>            Assignee: Marios Andreou
>            Priority: Minor
>              Labels: command-line, deltacloudc, usability
>
> 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. ;)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira