terminal.com 0.0.3 → 0.0.4
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 +4 -4
- data/lib/terminal.com/api.rb +19 -0
- data/lib/terminal.com.rb +56 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cc7cbfa9f6c764fdeeccb81b56f355a2d12c1e9
|
4
|
+
data.tar.gz: a6c163c3a6cb7cfe9509a72c19ddd3f627b31d63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3edeac5cbe7baac53d9317baa8094b9d00cf8b3022328085e357d361f4d6790b6d3d8c9eaf1b023a13c6ef112d570dfea8c7cdb0ea9bff348a59a6980ebf8673
|
7
|
+
data.tar.gz: 674d2e6153db61601fec5afadcb07c61edad2233d1a888907db9cde8a1c687ec21ee1ea309e135ae6d72ee00ca909aec63d419ce5a4b196d6cf503b04d46a121
|
data/lib/terminal.com/api.rb
CHANGED
@@ -191,6 +191,25 @@ module Terminal
|
|
191
191
|
Terminal.get_authorized_key_from_ssh_proxy(@user_token, @access_token)
|
192
192
|
end
|
193
193
|
|
194
|
+
######################
|
195
|
+
# TERMINAL PASSWORDS #
|
196
|
+
######################
|
197
|
+
|
198
|
+
# @since 0.0.4
|
199
|
+
def add_terminal_password(container_key, name, password, port)
|
200
|
+
Terminal.add_terminal_password(@user_token, @access_token, container_key, name, password, port)
|
201
|
+
end
|
202
|
+
|
203
|
+
# @since 0.0.4
|
204
|
+
def list_terminal_passwords(container_key)
|
205
|
+
Terminal.list_terminal_passwords(@user_token, @access_token, container_key)
|
206
|
+
end
|
207
|
+
|
208
|
+
# @since 0.0.4
|
209
|
+
def remove_terminal_password(container_key, name)
|
210
|
+
Terminal.remove_terminal_password(@user_token, @access_token, container_key, name)
|
211
|
+
end
|
212
|
+
|
194
213
|
#########
|
195
214
|
# OTHER #
|
196
215
|
#########
|
data/lib/terminal.com.rb
CHANGED
@@ -11,7 +11,7 @@ require 'time'
|
|
11
11
|
module Terminal
|
12
12
|
|
13
13
|
# The gem version.
|
14
|
-
VERSION = '0.0.
|
14
|
+
VERSION = '0.0.4'
|
15
15
|
|
16
16
|
# The Terminal.com API version.
|
17
17
|
API_VERSION = 'v0.1'
|
@@ -928,6 +928,61 @@ Network error (#{original_error.class}): #{original_error.message}
|
|
928
928
|
user_token: user_token, access_token: access_token)
|
929
929
|
end
|
930
930
|
|
931
|
+
# @!endgroup
|
932
|
+
# @!group TERMINAL PASSWORDS
|
933
|
+
|
934
|
+
# Assign login/password to a Terminal/port combination.
|
935
|
+
#
|
936
|
+
# @param (see .remove_terminal_password)
|
937
|
+
# @param password [String] An arbitrary password.
|
938
|
+
# @param port [String] A number, 'IDE' or '*'.
|
939
|
+
# @return (see .get_snapshot)
|
940
|
+
# @raise (see .get_snapshot)
|
941
|
+
#
|
942
|
+
# @since 0.0.4
|
943
|
+
# @see TODO: So far this is undocumented.
|
944
|
+
def self.add_terminal_password(user_token, access_token, container_key, name, password, port)
|
945
|
+
call('/add_terminal_password',
|
946
|
+
user_token: user_token,
|
947
|
+
access_token: access_token,
|
948
|
+
container_key: container_key,
|
949
|
+
name: name,
|
950
|
+
password: password,
|
951
|
+
port: port)
|
952
|
+
end
|
953
|
+
|
954
|
+
# List all the assigned Terminal logins and the ports they are assigned to.
|
955
|
+
#
|
956
|
+
# @param (see .delete_terminal)
|
957
|
+
# @return (see .get_snapshot)
|
958
|
+
# @raise (see .get_snapshot)
|
959
|
+
#
|
960
|
+
# @since 0.0.4
|
961
|
+
# @see TODO: So far this is undocumented.
|
962
|
+
def self.list_terminal_passwords(user_token, access_token, container_key)
|
963
|
+
call('/list_terminal_passwords',
|
964
|
+
user_token: user_token,
|
965
|
+
access_token: access_token,
|
966
|
+
container_key: container_key)
|
967
|
+
end
|
968
|
+
|
969
|
+
# Remove given login/password from a Terminal.
|
970
|
+
#
|
971
|
+
# @param (see .delete_terminal)
|
972
|
+
# @param name [String] An arbitrary identifier.
|
973
|
+
# @return (see .get_snapshot)
|
974
|
+
# @raise (see .get_snapshot)
|
975
|
+
#
|
976
|
+
# @since 0.0.4
|
977
|
+
# @see TODO: So far this is undocumented.
|
978
|
+
def self.remove_terminal_password(user_token, access_token, container_key, name)
|
979
|
+
call('/remove_terminal_password',
|
980
|
+
user_token: user_token,
|
981
|
+
access_token: access_token,
|
982
|
+
container_key: container_key,
|
983
|
+
name: name)
|
984
|
+
end
|
985
|
+
|
931
986
|
# @!endgroup
|
932
987
|
# @!group OTHER
|
933
988
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: terminal.com
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James C Russell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coderay
|