sshkit 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 729d775d8b75d0236bd1756c0c4d3bd1e0ace0b1
4
- data.tar.gz: ed4c442b6db439862659f9d5588adf6d4a91e678
3
+ metadata.gz: 1d240b417c873ab9f0c9e56797700ae369c9e247
4
+ data.tar.gz: d254ac62cb140472b626d2aacb6f6de5d43b8c04
5
5
  SHA512:
6
- metadata.gz: 0edeec6c8678ad5307b1221614ab207f76c213034502474c96c438bf6fa68a01355522ea7be34c688a1007936fa2c84d565cd869fdce58ef1c4bb35b3a84f22c
7
- data.tar.gz: 6e5aeb51f35d0269d0f4ac89308fa43d5d23c757e1bbe08b76d1cc6294f1e3c07e72cb364a9cecb530bbcd534683aefe3fd5c53208ad13f6ebf36b1ca0553328
6
+ metadata.gz: 5c5732a48ae1ea014a15012a9e9b2f4ddecf89ab9926d5d98ec91b27984ec9313bcfe8e736b70afcafac6832c094267dcc1863e6cbbc6af546b28339d8ec022b
7
+ data.tar.gz: 6fff632e1d8853d80535c812cc31bf45710f5887d2135747f078fc2b642567d213717d410bb54d6e36cb37167975e24ee76899fa2a35693a99d240faeb558cc3
@@ -3,6 +3,20 @@
3
3
  This file is written in reverse chronological order, newer releases will
4
4
  appear at the top.
5
5
 
6
+ ## 1.1.0
7
+
8
+ * The output now reads "Command exited with status _", rather than "command
9
+ failed", or "command succeded", the semantics are the same, but people
10
+ were confused by "failure", when things were running correctly.
11
+
12
+ * Small fix to the printer backend for tests, casting command to a string
13
+ explicitly.
14
+
15
+ ## 1.0.0
16
+
17
+ * The gem now supports a run_locally, although it's nothing to do with SSH,
18
+ it makes a nice API. There are examples in the EXAMPLES.md.
19
+
6
20
  ## 0.0.34
7
21
 
8
22
  * Allow the setting of global SSH options on the `backend.ssh` as a hash,
@@ -11,7 +11,7 @@ module SSHKit
11
11
 
12
12
  def execute(*args)
13
13
  command(*args).tap do |cmd|
14
- output << cmd
14
+ output << cmd.to_s
15
15
  end
16
16
  end
17
17
  alias :upload! :execute
@@ -44,7 +44,7 @@ module SSHKit
44
44
  end
45
45
 
46
46
  if command.finished?
47
- original_output << level(command.verbosity) + uuid(command) + "Finished in #{sprintf('%5.3f seconds', command.runtime)} command #{c.bold { command.failure? ? c.red('failed') : c.green('successful') }}.\n"
47
+ original_output << level(command.verbosity) + uuid(command) + "Finished in #{sprintf('%5.3f seconds', command.runtime)} with exit status #{command.exit_status} (#{c.bold { command.failure? ? c.red('failed') : c.green('successful') }}).\n"
48
48
  end
49
49
  end
50
50
 
@@ -1,3 +1,3 @@
1
1
  module SSHKit
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sshkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Hambley
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-10 00:00:00.000000000 Z
12
+ date: 2013-10-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-ssh
@@ -288,3 +288,4 @@ test_files:
288
288
  - test/unit/test_coordinator.rb
289
289
  - test/unit/test_host.rb
290
290
  - test/unit/test_logger.rb
291
+ has_rdoc: