diff options
| -rw-r--r-- | lib/ats/amp4e/computers.rb | 4 | ||||
| -rw-r--r-- | lib/ats/cli/amp4e/computers.rb | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/ats/amp4e/computers.rb b/lib/ats/amp4e/computers.rb index c1f49a1..595b04c 100644 --- a/lib/ats/amp4e/computers.rb +++ b/lib/ats/amp4e/computers.rb @@ -10,6 +10,10 @@ module ATS def list api.get("computers") end + + def show(id) + api.get("computers/#{id}") + end end end end diff --git a/lib/ats/cli/amp4e/computers.rb b/lib/ats/cli/amp4e/computers.rb index 741584f..0e854e0 100644 --- a/lib/ats/cli/amp4e/computers.rb +++ b/lib/ats/cli/amp4e/computers.rb @@ -8,6 +8,11 @@ module ATS def list print_json api.computers.list end + + desc 'show <UUID>', 'list' + def show(id) + print_json api.computers.show(id) + end end end end |
