Module: UwsgiItClient::ClientHelpers

Defined in:
lib/uwsgi_it_client/client_helpers.rb

Instance Method Summary collapse

Instance Method Details

#add_domain(name) ⇒ Object



25
26
27
# File 'lib/uwsgi_it_client/client_helpers.rb', line 25

def add_domain(name)
  post :domains, {name: name}
end

#add_key(key, c_id) ⇒ Object



21
22
23
# File 'lib/uwsgi_it_client/client_helpers.rb', line 21

def add_key(key, c_id)
  add_keys Array.wrap(key), c_id
end

#add_keys(keys, c_id) ⇒ Object



17
18
19
# File 'lib/uwsgi_it_client/client_helpers.rb', line 17

def add_keys(keys, c_id)
  post :container, {ssh_keys: keys}, id: c_id
end

#company=(value) ⇒ Object



5
6
7
# File 'lib/uwsgi_it_client/client_helpers.rb', line 5

def company=(value)
  post :me, {company: value}
end

#delete_domain(name) ⇒ Object



29
30
31
# File 'lib/uwsgi_it_client/client_helpers.rb', line 29

def delete_domain(name)
  delete :domains, {name: name}
end

#password=(value) ⇒ Object



9
10
11
# File 'lib/uwsgi_it_client/client_helpers.rb', line 9

def password=(value)
  post :me, {password: value}
end

#set_distro(d_id, c_id) ⇒ Object



13
14
15
# File 'lib/uwsgi_it_client/client_helpers.rb', line 13

def set_distro(d_id, c_id)
  post :container, {distro: d_id}, id: c_id
end