[
https://issues.apache.org/jira/browse/DTACLOUD-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marios Andreou closed DTACLOUD-20.
----------------------------------
Resolution: Fixed
deltacloudc is deprecated http://deltacloud.apache.org/command-tools.html
> 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
> Attachments:
> 0002-Fix-for-deltacloudc-to-address-jira-issue-20-https-i.patch
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira