Module: Terminal::Modules::CreateAndManageTerminals
Instance Method Summary collapse
-
#delete_terminal(container_key) ⇒ Hash
Delete a terminal instance.
-
#edit_terminal(container_key, required_options = {}) ⇒ Hash
Edit the resources and/or name of a Terminal instance.
-
#edit_terminal_access(container_key, access_rules = [], is_public_list = []) ⇒ Object
Edit the list of users and emails.
-
#get_terminal(container_key = nil, subdomain = nil) ⇒ Hash
Returns info about a specific terminal.
-
#list_terminal_access(container_key) ⇒ Hash
List users and emails with view or edit access to one of your Terminal instances.
-
#list_terminals ⇒ Hash
Returns a list of all your terminals.
-
#pause_terminal(container_key) ⇒ Hash
Pause a terminal instance.
-
#restart_terminal(container_key) ⇒ Hash
Restart a terminal instance.
-
#resume_terminal(container_key) ⇒ Hash
Resume a terminal instance.
-
#start_snapshot(snapshot_id, options = {}) ⇒ Hash
Start a terminal instance based on a snapshot.
Instance Method Details
#delete_terminal(container_key) ⇒ Hash
Delete a terminal instance
60 61 62 63 64 65 |
# File 'lib/terminal/modules/create_and_manage_terminals.rb', line 60 def delete_terminal(container_key) = {} [:auth] = true [:container_key] = container_key perform(:post, 'delete_terminal', ) end |
#edit_terminal(container_key, required_options = {}) ⇒ Hash
Edit the resources and/or name of a Terminal instance
117 118 119 120 121 |
# File 'lib/terminal/modules/create_and_manage_terminals.rb', line 117 def edit_terminal(container_key, ={}) [:auth] = true [:container_key] = container_key perform(:post, 'edit_terminal', ) end |
#edit_terminal_access(container_key, access_rules = [], is_public_list = []) ⇒ Object
Edit the list of users and emails
144 145 146 147 148 149 150 151 |
# File 'lib/terminal/modules/create_and_manage_terminals.rb', line 144 def edit_terminal_access(container_key, access_rules = [], is_public_list =[]) = {} [:auth] = true [:container_key] = container_key [:access_rules] = access_rules [:is_public_list] = is_public_list perform(:post, 'edit_terminal_access', ) end |
#get_terminal(container_key = nil, subdomain = nil) ⇒ Hash
Returns info about a specific terminal
27 28 29 30 31 32 33 |
# File 'lib/terminal/modules/create_and_manage_terminals.rb', line 27 def get_terminal(container_key = nil, subdomain = nil) = {} [:auth] = true [:container_key] = container_key unless container_key.nil? [:subdomain] = subdomain unless subdomain.nil? perform(:post, 'get_terminal', ) end |
#list_terminal_access(container_key) ⇒ Hash
List users and emails with view or edit access to one of your Terminal instances.
129 130 131 132 133 134 |
# File 'lib/terminal/modules/create_and_manage_terminals.rb', line 129 def list_terminal_access(container_key) = {} [:auth] = true [:container_key] = container_key perform(:post, 'list_terminal_access', ) end |
#list_terminals ⇒ Hash
Returns a list of all your terminals
14 15 16 17 18 |
# File 'lib/terminal/modules/create_and_manage_terminals.rb', line 14 def list_terminals = {} [:auth] = true perform(:post, 'list_terminals', ) end |
#pause_terminal(container_key) ⇒ Hash
Pause a terminal instance
86 87 88 89 90 91 |
# File 'lib/terminal/modules/create_and_manage_terminals.rb', line 86 def pause_terminal(container_key) = {} [:auth] = true [:container_key] = container_key perform(:post, 'pause_terminal', ) end |
#restart_terminal(container_key) ⇒ Hash
Restart a terminal instance
73 74 75 76 77 78 |
# File 'lib/terminal/modules/create_and_manage_terminals.rb', line 73 def restart_terminal(container_key) = {} [:auth] = true [:container_key] = container_key perform(:post, 'restart_terminal', ) end |
#resume_terminal(container_key) ⇒ Hash
Resume a terminal instance
99 100 101 102 103 104 |
# File 'lib/terminal/modules/create_and_manage_terminals.rb', line 99 def resume_terminal(container_key) = {} [:auth] = true [:container_key] = container_key perform(:post, 'resume_terminal', ) end |
#start_snapshot(snapshot_id, options = {}) ⇒ Hash
Start a terminal instance based on a snapshot
48 49 50 51 52 |
# File 'lib/terminal/modules/create_and_manage_terminals.rb', line 48 def start_snapshot(snapshot_id, = {}) [:auth] = true [:snapshot_id] = snapshot_id perform(:post, 'start_snapshot', ) end |