terminal.com 0.0.2 → 0.0.3

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: 521390d3deda294db938d225e60be0f78a8d2be8
4
- data.tar.gz: c63f9ecdb2493e5d48c62d9d357bdd5f7bf186c7
3
+ metadata.gz: ba44c13caa983770e392c0df116206f7a09e917c
4
+ data.tar.gz: 9027059de4bd6c139e36f5847c32c0a514ff8f5d
5
5
  SHA512:
6
- metadata.gz: 92ce68a65b841d4f2e1b5cd05550750bd041b4d751a9b96063af1ba991568b7b7fdc81ab359f0177ef25ca34774081173dca6eee58df2bdbb236dd04113b8375
7
- data.tar.gz: 3b4bfffaef11a6628a86436085e923cac5937b5e2a71c29369edfc681fabfeb7baf87fcdf91902e5c968f7168b8bf9d761c356e59fe021891e81902fcdd1ffed
6
+ metadata.gz: a8423e41628fda01acba7b4d5ef239ab1f247d67560375ff0dca433a2d40c8b2647152f5238e490247f88cb42b724eb30310a3e9c043805c72f8956223e07e82
7
+ data.tar.gz: 0c3a848f33aad94e6b7d72eb579afd0190d49b560dfdedc7b31fa5efce8748ca062d9587e1b68726a8c617cf4ca11ca631460482ad0f80c3c9cae8b12da48454
@@ -23,11 +23,11 @@ module Terminal
23
23
  ###############################
24
24
 
25
25
  def list_terminals
26
- Terminal::API.list_terminals(@user_token, @access_token)
26
+ Terminal.list_terminals(@user_token, @access_token)
27
27
  end
28
28
 
29
29
  def get_terminal(**options)
30
- Terminal::API.get_terminal(@user_token, @access_token, **options)
30
+ Terminal.get_terminal(@user_token, @access_token, **options)
31
31
  end
32
32
 
33
33
  def start_snapshot(snapshot_id, **options)
@@ -40,27 +40,27 @@ module Terminal
40
40
  options.merge!(instance_opts)
41
41
  end
42
42
 
43
- Terminal::API.start_snapshot(@user_token, @access_token, snapshot_id, **options)
43
+ Terminal.start_snapshot(@user_token, @access_token, snapshot_id, **options)
44
44
  end
45
45
 
46
46
  def delete_terminal(container_key)
47
- Terminal::API.delete_terminal(@user_token, @access_token, container_key)
47
+ Terminal.delete_terminal(@user_token, @access_token, container_key)
48
48
  end
49
49
 
50
50
  def restart_terminal(container_key)
51
- Terminal::API.restart_terminal(@user_token, @access_token, container_key)
51
+ Terminal.restart_terminal(@user_token, @access_token, container_key)
52
52
  end
53
53
 
54
54
  def pause_terminal(container_key)
55
- Terminal::API.pause_terminal(@user_token, @access_token, container_key)
55
+ Terminal.pause_terminal(@user_token, @access_token, container_key)
56
56
  end
57
57
 
58
58
  def resume_terminal(container_key)
59
- Terminal::API.resume_terminal(@user_token, @access_token, container_key)
59
+ Terminal.resume_terminal(@user_token, @access_token, container_key)
60
60
  end
61
61
 
62
62
  def edit_terminal(container_key, **options)
63
- Terminal::API.edit_terminal(@user_token, @access_token, container_key, **options)
63
+ Terminal.edit_terminal(@user_token, @access_token, container_key, **options)
64
64
  end
65
65
 
66
66
  ###############################
@@ -68,23 +68,23 @@ module Terminal
68
68
  ###############################
69
69
 
70
70
  def list_snapshots(**options)
71
- Terminal::API.list_snapshots(@user_token, @access_token, **options)
71
+ Terminal.list_snapshots(@user_token, @access_token, **options)
72
72
  end
73
73
 
74
74
  def count_snapshots(**options)
75
- Terminal::API.count_snapshots(@user_token, @access_token, **options)
75
+ Terminal.count_snapshots(@user_token, @access_token, **options)
76
76
  end
77
77
 
78
78
  def delete_snapshot(snapshot_id)
79
- Terminal::API.delete_snapshot(@user_token, @access_token, snapshot_id)
79
+ Terminal.delete_snapshot(@user_token, @access_token, snapshot_id)
80
80
  end
81
81
 
82
82
  def edit_snapshot(snapshot_id, **options)
83
- Terminal::API.edit_snapshot(@user_token, @access_token, snapshot_id, **options)
83
+ Terminal.edit_snapshot(@user_token, @access_token, snapshot_id, **options)
84
84
  end
85
85
 
86
86
  def snapshot_terminal(container_key, **options)
87
- Terminal::API.snapshot_terminal(@user_token, @access_token, container_key, **options)
87
+ Terminal.snapshot_terminal(@user_token, @access_token, container_key, **options)
88
88
  end
89
89
 
90
90
  ##########################
@@ -92,19 +92,19 @@ module Terminal
92
92
  ##########################
93
93
 
94
94
  def add_terminal_links(container_key, *links)
95
- Terminal::API.add_terminal_links(@user_token, @access_token, container_key, *links)
95
+ Terminal.add_terminal_links(@user_token, @access_token, container_key, *links)
96
96
  end
97
97
 
98
98
  def remove_terminal_links(container_key, *links)
99
- Terminal::API.remove_terminal_links(@user_token, @access_token, container_key, *links)
99
+ Terminal.remove_terminal_links(@user_token, @access_token, container_key, *links)
100
100
  end
101
101
 
102
102
  def list_terminal_access(container_key)
103
- Terminal::API.list_terminal_access(@user_token, @access_token, container_key)
103
+ Terminal.list_terminal_access(@user_token, @access_token, container_key)
104
104
  end
105
105
 
106
106
  def edit_terminal_access(container_key, **options)
107
- Terminal::API.edit_terminal_access(@user_token, @access_token, container_key, **options)
107
+ Terminal.edit_terminal_access(@user_token, @access_token, container_key, **options)
108
108
  end
109
109
 
110
110
  #################################
@@ -112,23 +112,23 @@ module Terminal
112
112
  #################################
113
113
 
114
114
  def get_cname_records
115
- Terminal::API.get_cname_records(@user_token, @access_token)
115
+ Terminal.get_cname_records(@user_token, @access_token)
116
116
  end
117
117
 
118
118
  def add_domain_to_pool
119
- Terminal::API.add_domain_to_pool(@user_token, @access_token, domain)
119
+ Terminal.add_domain_to_pool(@user_token, @access_token, domain)
120
120
  end
121
121
 
122
122
  def remove_domain_from_pool
123
- Terminal::API.remove_domain_from_pool(@user_token, @access_token, domain)
123
+ Terminal.remove_domain_from_pool(@user_token, @access_token, domain)
124
124
  end
125
125
 
126
126
  def add_cname_record(domain, subdomain, port)
127
- Terminal::API.add_cname_record(@user_token, @access_token, domain, subdomain, port)
127
+ Terminal.add_cname_record(@user_token, @access_token, domain, subdomain, port)
128
128
  end
129
129
 
130
130
  def remove_cname_record(domain)
131
- Terminal::API.remove_cname_record(@user_token, @access_token, domain)
131
+ Terminal.remove_cname_record(@user_token, @access_token, domain)
132
132
  end
133
133
 
134
134
  #################################
@@ -136,39 +136,39 @@ module Terminal
136
136
  #################################
137
137
 
138
138
  def set_terminal_idle_settings(container_key, action, *triggers)
139
- Terminal::API.set_terminal_idle_settings(@user_token, @access_token, action, *triggers)
139
+ Terminal.set_terminal_idle_settings(@user_token, @access_token, action, *triggers)
140
140
  end
141
141
 
142
142
  def get_terminal_idle_settings(container_key)
143
- Terminal::API.get_terminal_idle_settings(@user_token, @access_token, container_key)
143
+ Terminal.get_terminal_idle_settings(@user_token, @access_token, container_key)
144
144
  end
145
145
 
146
146
  def balance
147
- Terminal::API.balance(@user_token, @access_token)
147
+ Terminal.balance(@user_token, @access_token)
148
148
  end
149
149
 
150
150
  def balance_added
151
- Terminal::API.balance_added(@user_token, @access_token)
151
+ Terminal.balance_added(@user_token, @access_token)
152
152
  end
153
153
 
154
154
  def gift(email, cents)
155
- Terminal::API.gift(@user_token, @access_token, email, cents)
155
+ Terminal.gift(@user_token, @access_token, email, cents)
156
156
  end
157
157
 
158
158
  def burn_history
159
- Terminal::API.burn_history(@user_token, @access_token)
159
+ Terminal.burn_history(@user_token, @access_token)
160
160
  end
161
161
 
162
162
  def terminal_usage_history
163
- Terminal::API.terminal_usage_history(@user_token, @access_token)
163
+ Terminal.terminal_usage_history(@user_token, @access_token)
164
164
  end
165
165
 
166
166
  def burn_state
167
- Terminal::API.burn_state(@user_token, @access_token)
167
+ Terminal.burn_state(@user_token, @access_token)
168
168
  end
169
169
 
170
170
  def burn_estimates
171
- Terminal::API.burn_estimates(@user_token, @access_token)
171
+ Terminal.burn_estimates(@user_token, @access_token)
172
172
  end
173
173
 
174
174
  ##########################
@@ -176,19 +176,19 @@ module Terminal
176
176
  ##########################
177
177
 
178
178
  def add_authorized_key_to_terminal(container_key, publicKey)
179
- Terminal::API.add_authorized_key_to_terminal(@user_token, @access_token, container_key, publicKey)
179
+ Terminal.add_authorized_key_to_terminal(@user_token, @access_token, container_key, publicKey)
180
180
  end
181
181
 
182
182
  def add_authorized_key_to_ssh_proxy(name, publicKey)
183
- Terminal::API.add_authorized_key_to_ssh_proxy(@user_token, @access_token, name, publicKey)
183
+ Terminal.add_authorized_key_to_ssh_proxy(@user_token, @access_token, name, publicKey)
184
184
  end
185
185
 
186
186
  def del_authorized_key_from_ssh_proxy(name, fingerprint)
187
- Terminal::API.del_authorized_key_from_ssh_proxy(@user_token, @access_token, name, fingerprint)
187
+ Terminal.del_authorized_key_from_ssh_proxy(@user_token, @access_token, name, fingerprint)
188
188
  end
189
189
 
190
190
  def get_authorized_key_from_ssh_proxy
191
- Terminal::API.get_authorized_key_from_ssh_proxy(@user_token, @access_token)
191
+ Terminal.get_authorized_key_from_ssh_proxy(@user_token, @access_token)
192
192
  end
193
193
 
194
194
  #########
@@ -196,7 +196,7 @@ module Terminal
196
196
  #########
197
197
 
198
198
  def who_am_i
199
- Terminal::API.who_am_i(@user_token, @access_token)
199
+ Terminal.who_am_i(@user_token, @access_token)
200
200
  end
201
201
  end
202
202
  end
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.2'
14
+ VERSION = '0.0.3'
15
15
 
16
16
  # The Terminal.com API version.
17
17
  API_VERSION = 'v0.1'
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terminal.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
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: 2014-12-09 00:00:00.000000000 Z
11
+ date: 2015-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coderay
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1'
27
27
  description: The official Terminal.com Ruby + CLI client.
@@ -50,12 +50,12 @@ require_paths:
50
50
  - lib
51
51
  required_ruby_version: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - "~>"
53
+ - - ~>
54
54
  - !ruby/object:Gem::Version
55
55
  version: '2'
56
56
  required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ">="
58
+ - - '>='
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
61
  requirements: []
@@ -65,4 +65,3 @@ signing_key:
65
65
  specification_version: 4
66
66
  summary: The official Terminal.com Ruby + CLI client
67
67
  test_files: []
68
- has_rdoc: