module Fleet::Client::Unit
Constants
- UNITS_RESOURCE
Public Instance Methods
create_unit(name, unit)
click to toggle source
# File lib/fleet/client/unit.rb, line 17 def create_unit(name, unit) put(units_path(name), unit) end
Also aliased as: update_unit
delete_unit(name)
click to toggle source
# File lib/fleet/client/unit.rb, line 23 def delete_unit(name) delete(units_path(name)) end
get_unit(name)
click to toggle source
# File lib/fleet/client/unit.rb, line 11 def get_unit(name) get(units_path(name)) end
Also aliased as: get_unit_file
list_units()
click to toggle source
# File lib/fleet/client/unit.rb, line 7 def list_units() get(units_path) end
Private Instance Methods
units_path(*parts)
click to toggle source
# File lib/fleet/client/unit.rb, line 29 def units_path(*parts) resource_path(UNITS_RESOURCE, *parts) end