solusvm 2.0.0.beta1 → 2.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.markdown +0 -1
- data/lib/solusvm/cli/server_cli.rb +0 -5
- data/lib/solusvm/server.rb +0 -10
- data/lib/solusvm/version.rb +1 -1
- data/test/cli/test_server_cli.rb +0 -10
- data/test/solusvm/test_server.rb +0 -8
- 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: 6f5525c9a9ca9993cf379b33d2fd8dea7703202f
|
4
|
+
data.tar.gz: c3573a14598c88ba6580b3aae59b90d05a253dd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: baa5a2ed6befc61fd612e9f00f0f2c1e48ec4e73418fa1eceb1471a6a83e4553760adc75cd1ad5bb7a64a7a4e232f8a30decd507b7b86b37dcbe884504b547ba
|
7
|
+
data.tar.gz: d7ffb735a072023886f597860cf71fd2b3cafa9d998af405314d2e314fd245b833d69fa7587527b3fd621dd9e925193eed37c4b94c6578c09502a7f15384203a
|
data/README.markdown
CHANGED
@@ -96,7 +96,6 @@ Tasks:
|
|
96
96
|
solusvm server addip VSERVERID # Adds an ip to the server
|
97
97
|
solusvm server boot VSERVERID # Boots up a server
|
98
98
|
solusvm server change-bootorder VSERVERID BOOTORDER # Changes the boot order of a server [cd(Hard Disk CDROM)|dc(CDROM Hard Disk)|c(Hard Di...
|
99
|
-
solusvm server change-consolepass VSERVERID NEWPASSWORD # Changes the console password of a server
|
100
99
|
solusvm server change-hostname VSERVERID HOSTNAME # Changes the hostname of a server
|
101
100
|
solusvm server change-owner VSERVERID CLIENTID # Changes the owner of a server
|
102
101
|
solusvm server change-plan VSERVERID NEWPLAN # Changes the plan of a server
|
@@ -36,11 +36,6 @@ module SolusVM
|
|
36
36
|
output api.change_owner(vserverid, clientid)
|
37
37
|
end
|
38
38
|
|
39
|
-
desc "change-consolepass VSERVERID NEWPASSWORD", "Changes the console password of a server"
|
40
|
-
def change_consolepass(vserverid, newpassword)
|
41
|
-
output api.change_consolepass(vserverid, newpassword)
|
42
|
-
end
|
43
|
-
|
44
39
|
desc "change-vncpass VSERVERID NEWPASSWORD", "Changes the vnc password of a server"
|
45
40
|
def change_vncpass(vserverid, newpassword)
|
46
41
|
output api.change_vncpass(vserverid, newpassword)
|
data/lib/solusvm/server.rb
CHANGED
@@ -207,16 +207,6 @@ module SolusVM
|
|
207
207
|
perform_request(action: 'vserver-changeowner', vserverid: vid, clientid: client_id)
|
208
208
|
end
|
209
209
|
|
210
|
-
# Public: Changes server console password.
|
211
|
-
#
|
212
|
-
# vid - The virtual server ID in SolusVM
|
213
|
-
# new_password - The new console password
|
214
|
-
#
|
215
|
-
# Returns true if the server's console password was successfully changed.
|
216
|
-
def change_consolepass(vid, new_password)
|
217
|
-
perform_request(action: 'vserver-consolepass', vserverid: vid, consolepassword: new_password)
|
218
|
-
end
|
219
|
-
|
220
210
|
# Public: Changes server VNC password.
|
221
211
|
#
|
222
212
|
# vid - The virtual server ID in SolusVM
|
data/lib/solusvm/version.rb
CHANGED
data/test/cli/test_server_cli.rb
CHANGED
@@ -40,16 +40,6 @@ class TestServerCLI < Test::Unit::TestCase
|
|
40
40
|
SolusVM::CLI.start(cli_expand_base_arguments(["server", "change-owner", "thevserverid", "thenewowner"]))
|
41
41
|
end
|
42
42
|
|
43
|
-
def test_should_delegate_server_change_consolepass_to_server
|
44
|
-
SolusVM::Server.stubs(:new).with(@solusvm_params).returns(mock do
|
45
|
-
expects(:successful?).returns(true)
|
46
|
-
expects(:change_consolepass).with("thevserverid", "thenewpass").returns("theresult")
|
47
|
-
end)
|
48
|
-
|
49
|
-
$stdout.expects(:puts).with("theresult")
|
50
|
-
SolusVM::CLI.start(cli_expand_base_arguments(["server", "change-consolepass", "thevserverid", "thenewpass"]))
|
51
|
-
end
|
52
|
-
|
53
43
|
def test_should_delegate_server_change_vncpass_to_server
|
54
44
|
SolusVM::Server.stubs(:new).with(@solusvm_params).returns(mock do
|
55
45
|
expects(:successful?).returns(true)
|
data/test/solusvm/test_server.rb
CHANGED
@@ -167,14 +167,6 @@ class TestServer < Test::Unit::TestCase
|
|
167
167
|
assert @server.successful?
|
168
168
|
end
|
169
169
|
|
170
|
-
def test_change_consolepass
|
171
|
-
pend do
|
172
|
-
stub_response 'server/change-consolepass'
|
173
|
-
|
174
|
-
assert @server.change_consolepass(1, 'thepassword')
|
175
|
-
end
|
176
|
-
end
|
177
|
-
|
178
170
|
def test_change_vncpass
|
179
171
|
stub_response 'server/change-vncpass'
|
180
172
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solusvm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Mazzi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|