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 16 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 22 def delete_unit(name) delete(units_path(name)) end
get_unit(name)
click to toggle source
# File lib/fleet/client/unit.rb, line 10 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 6 def list_units get(units_path) end
Private Instance Methods
units_path(*parts)
click to toggle source
# File lib/fleet/client/unit.rb, line 28 def units_path(*parts) resource_path(UNITS_RESOURCE, *parts) end