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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7016a6235da3894e15965d86055980a3cdb3c355
4
- data.tar.gz: 69c04d5fd93bf27b815e7e2df5139e7de8589f6b
3
+ metadata.gz: a7d63a012e0986566a8b5a4cd7815b6d545ff3c8
4
+ data.tar.gz: 562292fd94769cba2d7b8ab9d5799da864949bf6
5
5
  SHA512:
6
- metadata.gz: ba9a0c8c78f1209726777cc21f08ca0077517069f4a3581d331e3d1916114a06f67022fd466fa454751d2ee339bfe838ff316aec116765bdd40f3602700cd4ca
7
- data.tar.gz: 183b36907477b385975764dd09d14f522284dbf944a8cf9f00e645b145de7f54ded166de0c4e8c92f56e424517a7925370bb5c8dd394e2114321208906e8a93e
6
+ metadata.gz: e76a00db51b6afce972127adb430a268ee70a224f6ca60f6af4e94d95c90e2fe9f6a804408a4e61892ba838b8713d06a25770c20de5530beefa7c5bcedef4f28
7
+ data.tar.gz: 240257a085c9f4c844a1490f8cd3ff21730bc55b3af7fe45ca1622c06269b8d2468a2aa5b0146198216994455fd7783835a435160b42a71eb73abb1f837306f1
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in vagrant_ssh-ssh.gemspec
4
3
  gemspec
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
+ ```
@@ -2,7 +2,7 @@ module VagrantSsh
2
2
  class Shell
3
3
  attr_reader :options
4
4
 
5
- def initialize(hostname, logger = Logger.new(STDOUT), options = {})
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]
@@ -1,3 +1,3 @@
1
1
  module VagrantSsh
2
- VERSION = '1.0.2'
2
+ VERSION = '2.0.0'
3
3
  end
@@ -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: 1.0.2
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-13 00:00:00.000000000 Z
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
@@ -1,3 +0,0 @@
1
- --require spec_helper
2
- --color
3
- --format progress