Uploaded image for project: 'DeltaCloud'
  1. DeltaCloud
  2. DTACLOUD-20

deltacloudc command line arguments on Win7

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • Windows 7 x64 with Ruby 1.8.6

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            marios Marios Andreou
            justinclift Justin Clift
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment