Bug #732

Add new int type in CLI's DSL argument types

Added by Jaime Melis almost 10 years ago. Updated almost 10 years ago.

Status:ClosedStart date:07/18/2011
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:CLI
Target version:Release 3.0
Resolution:fixed Pull request:
Affected Versions:

Description

Some commands, like onehost update <HOST_ID> expects an INT as an argument, therefore the CLI's DSL should have an :int type which checks that the argument is in fact an int and exits otherwise.

Associated revisions

Revision dbb5fe99
Added by Jaime Melis almost 10 years ago

Bug #732: Add new int type in CLI's DSL argument types

History

#1 Updated by Jaime Melis almost 10 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

The CLI does already have an type that forces a FixNum, the proble is with the Tempfile library that expects a String, not an Integer (only in ruby 1.9.x).

Small patch applied.

Closing ticket

Also available in: Atom PDF