fulmar-shell 1.6.1 → 1.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fulmar/shell.rb +7 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07c5c0cf088d46e90387950e52896969cf0db870
4
- data.tar.gz: b78a90442cd9754b781d495dceba2e2ca2790cf6
3
+ metadata.gz: 9beb9b166c466a701a241d610f0b913999d6030b
4
+ data.tar.gz: da3c8374fc76fbd3aa7a68d7af8adbc00604ed23
5
5
  SHA512:
6
- metadata.gz: 332a535c24266d9ebfdb9388ae97d26ab103cbd64fef6569dbf12d6ac23f37c2328236b58e77245e40faa161f22b885cceef4c7d08d6e66268b5781814d035ab
7
- data.tar.gz: d6aa30cc0ae1db82448ead093e46899aaa22c01b4539e77c3d25557a0e098c0e850e8aa9465f9bf8352340ec29e4cb9f42f35c44aa13cfa6ac8733fdcdcca278
6
+ metadata.gz: c31e732144cc432c4dd6a9a5ab37af123ded2024dc53fbc4469358b4467b35ffb7ee64c74cd4d1f1965f630d80b5ad4111cf7acf86e234f6e7162d6fa638fb2d
7
+ data.tar.gz: 6b64b3e79d2481f300d5879b21728dc1a85004d5b5d1d2817301b3de51dd29594d48a50124a9b7ef160bb2dd2d91802f93fee2a3314d0c4bce445d4a46aca30a
data/lib/fulmar/shell.rb CHANGED
@@ -5,7 +5,7 @@ require 'open3'
5
5
  module Fulmar
6
6
  # Implements simple access to shell commands
7
7
  class Shell
8
- VERSION = '1.6.1'
8
+ VERSION = '1.6.2'
9
9
 
10
10
  attr_accessor :debug, :last_output, :last_error, :quiet, :strict
11
11
  attr_reader :path
@@ -28,6 +28,7 @@ module Fulmar
28
28
  end
29
29
 
30
30
  def run(command, options = DEFAULT_OPTIONS)
31
+ reset_output
31
32
  command = [command] if command.class == String
32
33
 
33
34
  # is a custom path given?
@@ -65,6 +66,11 @@ module Fulmar
65
66
 
66
67
  protected
67
68
 
69
+ def reset_output
70
+ @last_output = []
71
+ @last_error = []
72
+ end
73
+
68
74
  def shell_command(login)
69
75
  login ? "env -i HOME=\"#{ENV['HOME']}\" LANG=\"#{ENV['LANG']}\" bash -lc" : 'bash -c'
70
76
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fulmar-shell
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerrit Visscher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-13 00:00:00.000000000 Z
11
+ date: 2016-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler