cc-terminal 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5746a884cb90c9113d05babd52b16d89a120aff6
4
- data.tar.gz: c329f2e63393b20e2e188b17dec6743585f3d660
3
+ metadata.gz: 53c328ddc0506e87fed2963c5bc8a8e12fb62d8e
4
+ data.tar.gz: 44f170b103affc4a175c294ddfd24a600d9693f5
5
5
  SHA512:
6
- metadata.gz: 0663c76ec9909e2ef88c114b6eac20e7d1e970e46de1376f2ba9397c77ba5e0c560e11c52da35c4ef495cdeac081cecaf1033d33421153968acd257c9347d62a
7
- data.tar.gz: ea48749507f985ea0dc0b8a9c41786031590ed9c16abf3949b3f07dcef2c02c6e2051f193db0b765e77da24dee7f6c457c42c2f925f06c05f07f8eaf96d97493
6
+ metadata.gz: 8019fe2b378895a52e5d35957ba3b7d9bc8f1564b76cf04958f59c5ab02929a671e6a80c8a995b399882304efee9194d09c0ac61b478022f7c244381782412a6
7
+ data.tar.gz: 00605e2e3275a4ef156e12d1d1af63c5a8a79e83d82121bd93494880c582391310b4fda9ff7245828c2078dd4363082fa2dd22f6e2ee4b3d9a769ecb93c5c40a
@@ -116,10 +116,40 @@ module Terminal
116
116
  # @return [Hash] Hash containing the :status and the :request_id for the request
117
117
  def edit_terminal(container_key, required_options ={})
118
118
  required_options[:auth] = true
119
- requireed_options[:container_key] = container_key
119
+ required_options[:container_key] = container_key
120
120
  perform(:post, 'edit_terminal', required_options)
121
121
  end
122
122
 
123
+ # List users and emails with view or edit access to one of your Terminal instances.
124
+ #
125
+ # @see https://www.terminal.com/api/docs#list-terminal-access
126
+ # @authentication Requires user_token and access_token
127
+ # @param container_key [String] the id of the terminal you are trying to list
128
+ # @return [Hash] Hash containing the :is_public_list (ports open) and :access_rules, an array of user access
129
+ def list_terminal_access(container_key)
130
+ options = {}
131
+ options[:auth] = true
132
+ options[:container_key] = container_key
133
+ perform(:post, 'list_terminal_access', options)
134
+ end
135
+
136
+ # Edit the list of users and emails
137
+ #
138
+ # @see https://www.terminal.com/api/docs#edit-terminal-acccess
139
+ # @authentication Requires user_token and access_token
140
+ # @param container_key [String] the id of the terminal you are trying to edit
141
+ # @param access_rules array of user to port mapping
142
+ # @param is_public_list an array of ports open to the public
143
+ # @param [Hash] Hash containing the :status "success" or "fail"
144
+ def edit_terminal_access(container_key, access_rules = [], is_public_list =[])
145
+ options = {}
146
+ options[:auth] = true
147
+ options[:container_key] = container_key
148
+ options[:access_rules] = access_rules
149
+ options[:is_public_list] = is_public_list
150
+ perform(:post, 'edit_terminal_access', options)
151
+ end
152
+
123
153
  end
124
154
  end
125
155
  end
@@ -1,3 +1,3 @@
1
1
  module Terminal
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cc-terminal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timor Tsentsiper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-05 00:00:00.000000000 Z
11
+ date: 2014-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json