Uploaded image for project: 'Stratos'
  1. Stratos
  2. STRATOS-884

CLI has duplicated command implementations in RestCommandLineService class

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.0 M1
    • Fix Version/s: 4.1.0 RC3
    • Component/s: CLI
    • Labels:
      None

      Description

      At present CLI has duplicated code in RestCommandLineService class where it has implemented the same logic for different commands. Here we can identify generic command types such as deploy, undeploy, create, update, delete, get & list and move them to separate set of methods. This will help us to manage logic from a central location and make sure the exact behaviour is implemented in all commands.

        Activity

        Hide
        imesh Imesh Gunaratne added a comment -

        Refactored by introducing a new set of methods in RestClient class.
        Commit revision: c79b2316020b674bd81ac746799a31e31e29b4be

        Show
        imesh Imesh Gunaratne added a comment - Refactored by introducing a new set of methods in RestClient class. Commit revision: c79b2316020b674bd81ac746799a31e31e29b4be

          People

          • Assignee:
            imesh Imesh Gunaratne
            Reporter:
            imesh Imesh Gunaratne
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development