fulmar-shell 1.6.6 → 1.6.7

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 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0f0cccc56f26c674906a278f07bce245af1605b
4
- data.tar.gz: 7c191bbd69369bc6b6741534052f9bfe9b9b77de
3
+ metadata.gz: e5924806aaa5f04075d0479988e0afae308225bb
4
+ data.tar.gz: 1bb2d3fa1c547a92732e8ccbcdf607e042c5bfeb
5
5
  SHA512:
6
- metadata.gz: f6ef35195305c7f00015d605aaf0f46ffd297f4f8ef8bb711f204ccec84b38052c662d33bd5e296dab2b65e03f3ef1196fa1a825a6ce0972bc9989732f6a02e3
7
- data.tar.gz: 8573de035f4093abb9075ebe9660ef149dc8d02c4a73f60dc4d4d43b4fdf0d5a4ad0e7694a245d627375a8fd0b9b1c11c98261ab9a456c9321550828cd0e9d0e
6
+ metadata.gz: 891228db781860614a508b73984b2295fcad2f8f009eb2866e911edc8f9bcf11dc6e9bb808d926d48b5c3a4e2d236d7f84f10c5696b7a722b14fd15e1ccd2009
7
+ data.tar.gz: e90984ae0b33f5e371d7d8d36aa462e3585c29685a2bbef3c30c3251a1ffc8f42e1b12d4c89e50ece8c7ffe03b7faef1251cc6ec0e6b82eb2fcb9953b502d56a
data/lib/fulmar/shell.rb CHANGED
@@ -5,14 +5,14 @@ require 'open3'
5
5
  module Fulmar
6
6
  # Implements simple access to shell commands
7
7
  class Shell
8
- VERSION = '1.6.6'
8
+ VERSION = '1.6.7'
9
9
 
10
10
  attr_accessor :debug, :last_output, :last_error, :quiet, :strict
11
11
  attr_reader :path
12
12
 
13
13
  DEFAULT_OPTIONS = {
14
14
  login: false,
15
- bundler: true #
15
+ escape_bundler: false
16
16
  }
17
17
 
18
18
  def initialize(path = '.', host = 'localhost')
@@ -83,6 +83,7 @@ module Fulmar
83
83
  env.delete_if { |key| bundler_variable_parts.select { |part| key.downcase.include?(part) }.any? }
84
84
  env['PATH'] = path_without_bundler
85
85
  end
86
+ puts "Environment: #{env.inspect}" if @debug
86
87
  env
87
88
  end
88
89
 
@@ -115,13 +116,15 @@ module Fulmar
115
116
 
116
117
  return_value = wait_thread.value
117
118
 
118
- if @strict and return_value != 0
119
+ if @strict and return_value.exitstatus != 0
119
120
  dump_error_message(command)
120
121
  fail error_message
121
122
  end
122
123
  end
123
124
 
124
- return_value == 0
125
+ puts "Program exited with status #{return_value.exitstatus}." if @debug
126
+
127
+ return_value.exitstatus == 0
125
128
  end
126
129
 
127
130
  def escape_for_sh(text)
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.6
4
+ version: 1.6.7
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-09-09 00:00:00.000000000 Z
11
+ date: 2016-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler