Class: Mackerel::Commands::HostRoles
- Inherits:
-
Thor
- Object
- Thor
- Mackerel::Commands::HostRoles
- Defined in:
- lib/mackerel/commands/host_roles.rb
Instance Method Summary collapse
Instance Method Details
#delete(id) ⇒ Object
13 14 15 |
# File 'lib/mackerel/commands/host_roles.rb', line 13 def delete(id) puts JSON.pretty_generate Mackerel.update_host_roles(id, {roleFullnames: []}) end |
#update(id) ⇒ Object
8 9 10 |
# File 'lib/mackerel/commands/host_roles.rb', line 8 def update(id) puts JSON.pretty_generate Mackerel.update_host_roles(id, ) end |