vagrant-ssh 1.0.2 → 2.0.0
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/Gemfile +0 -1
- data/README.md +20 -0
- data/lib/vagrant-ssh/shell.rb +1 -1
- data/lib/vagrant-ssh/version.rb +1 -1
- data/spec/vagrant_ssh_spec.rb +1 -1
- metadata +2 -3
- data/.rspec +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7d63a012e0986566a8b5a4cd7815b6d545ff3c8
|
4
|
+
data.tar.gz: 562292fd94769cba2d7b8ab9d5799da864949bf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e76a00db51b6afce972127adb430a268ee70a224f6ca60f6af4e94d95c90e2fe9f6a804408a4e61892ba838b8713d06a25770c20de5530beefa7c5bcedef4f28
|
7
|
+
data.tar.gz: 240257a085c9f4c844a1490f8cd3ff21730bc55b3af7fe45ca1622c06269b8d2468a2aa5b0146198216994455fd7783835a435160b42a71eb73abb1f837306f1
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -26,3 +26,23 @@ To create an SSH connection to your Vagrant box:
|
|
26
26
|
=> I, [2015-07-13T16:42:25.127602 #82100] INFO -- : Executing SSH command: whoami
|
27
27
|
=> I, [2015-07-13T16:42:25.142657 #82100] INFO -- : vagrant
|
28
28
|
```
|
29
|
+
|
30
|
+
## Running the tests
|
31
|
+
|
32
|
+
Before running the tests, you need to create the Vagrant VM.
|
33
|
+
|
34
|
+
```bash
|
35
|
+
$ rake create_vm
|
36
|
+
```
|
37
|
+
|
38
|
+
You can then run the tests.
|
39
|
+
|
40
|
+
```bash
|
41
|
+
$ rake spec
|
42
|
+
```
|
43
|
+
|
44
|
+
Afterwards, you may want to destroy the Vagrant VM created above.
|
45
|
+
|
46
|
+
```bash
|
47
|
+
$ rake destroy_vm
|
48
|
+
```
|
data/lib/vagrant-ssh/shell.rb
CHANGED
@@ -2,7 +2,7 @@ module VagrantSsh
|
|
2
2
|
class Shell
|
3
3
|
attr_reader :options
|
4
4
|
|
5
|
-
def initialize(hostname, logger
|
5
|
+
def initialize(hostname, logger: Logger.new(STDOUT), options: {})
|
6
6
|
@options = { user: 'vagrant',
|
7
7
|
password: 'vagrant' }.merge(options)
|
8
8
|
@user = options[:user]
|
data/lib/vagrant-ssh/version.rb
CHANGED
data/spec/vagrant_ssh_spec.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
describe VagrantSsh::Shell do
|
2
|
-
subject(:vagrant_ssh) { VagrantSsh::Shell.new(host, nil_logger) }
|
2
|
+
subject(:vagrant_ssh) { VagrantSsh::Shell.new(host, logger: nil_logger) }
|
3
3
|
|
4
4
|
let(:credentials) { { user: 'vagrant', password: 'vagrant' } }
|
5
5
|
let(:nil_logger) { Logger.new(nil) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-ssh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Snape
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|
@@ -74,7 +74,6 @@ extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
76
|
- ".gitignore"
|
77
|
-
- ".rspec"
|
78
77
|
- Gemfile
|
79
78
|
- LICENSE
|
80
79
|
- README.md
|
data/.rspec
DELETED