kitchen-ssh 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +1 -1
- data/README.md +9 -9
- data/lib/kitchen/driver/ssh.rb +4 -2
- data/lib/kitchen/ssh/version.rb +1 -1
- metadata +2 -2
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
ssh driver for test-kitchen for any running server with an ip address
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
5
|
+
server must be created and destroyed natively (e.g. via cloud or virtualization console).
|
6
|
+
specify driver parameters
|
7
|
+
* hostname
|
8
|
+
* port
|
9
|
+
* username
|
10
|
+
* password
|
11
|
+
* sudo
|
12
|
+
* ssh_key
|
13
|
+
* forward_agent
|
14
14
|
|
15
15
|
## Installation
|
16
16
|
|
data/lib/kitchen/driver/ssh.rb
CHANGED
@@ -12,13 +12,15 @@ module Kitchen
|
|
12
12
|
state[:username] = config[:username]
|
13
13
|
state[:hostname] = config[:hostname]
|
14
14
|
state[:password] = config[:password]
|
15
|
+
print "Kitchen-ssh does not start your server '#{state[:hostname]}' but will look for an ssh connection with user '#{state[:username]}'"
|
15
16
|
wait_for_sshd(state[:hostname], state[:username])
|
16
|
-
print
|
17
|
+
print "Kitchen-ssh found ssh ready on host '#{state[:hostname]}' with user '#{state[:username]}'\n"
|
17
18
|
debug("ssh:create '#{state[:hostname]}'")
|
18
19
|
end
|
19
20
|
|
20
21
|
def destroy(state)
|
21
|
-
print
|
22
|
+
print "Kitchen-ssh does not destroy your server '#{state[:hostname]}' by shutting it down..."
|
23
|
+
print "Shutdown your server '#{state[:hostname]}' natively with user '#{state[:username]}'"
|
22
24
|
print 'in your cloud or virtualisation console etc.\n'
|
23
25
|
debug("ssh:destroy '#{state[:hostname]}'")
|
24
26
|
end
|
data/lib/kitchen/ssh/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-ssh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-05-
|
12
|
+
date: 2014-05-21 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ! '== DESCRIPTION:
|
15
15
|
|