diff options
| author | mo <mo.khan@gmail.com> | 2018-03-18 17:43:57 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2018-03-18 17:43:57 -0600 |
| commit | 85b5c5c9ac5b7e111a430ce82f1d7ae60ff728b6 (patch) | |
| tree | 4a1cd7f7a7aff281aae2dd566996c0dcbd4df58c | |
| parent | c56f3dbe74f56417241fe1437600844656f360bd (diff) | |
add groups show command.
| -rw-r--r-- | lib/ats/amp4e/groups.rb | 4 | ||||
| -rw-r--r-- | lib/ats/cli/amp4e/groups.rb | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/ats/amp4e/groups.rb b/lib/ats/amp4e/groups.rb index 4e766bf..461a2bc 100644 --- a/lib/ats/amp4e/groups.rb +++ b/lib/ats/amp4e/groups.rb @@ -10,6 +10,10 @@ module ATS def list api.get("groups") end + + def show(id) + api.get("groups/#{id}") + end end end end diff --git a/lib/ats/cli/amp4e/groups.rb b/lib/ats/cli/amp4e/groups.rb index add7f30..242309e 100644 --- a/lib/ats/cli/amp4e/groups.rb +++ b/lib/ats/cli/amp4e/groups.rb @@ -8,6 +8,11 @@ module ATS def list print_json api.groups.list end + + desc 'show <UUID>', 'list' + def show(id) + print_json api.groups.show(id) + end end end end |
