henry-container 0.1.61 → 0.1.62

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: 6ec50525b882f4cd466333b16d38d5f48aa2c813
4
- data.tar.gz: 646020ee60b8c5cd6dadcbb0897c6fa1af701892
3
+ metadata.gz: e0c670917b15031bc9ce8cc1c6b8a93efe031e2c
4
+ data.tar.gz: 41cfaace0d91ce1f95c28c1b54382ec92eb24b02
5
5
  SHA512:
6
- metadata.gz: dc07d012ee1cb1342afcd8f4732d3c3ac0d9362bf305b31adf31a6e2acd0d40ad7b92c8062a1ba2d942b84d0d23c8e0b2e141dc2de56259b7d519e885772e129
7
- data.tar.gz: e1b4028c9af7bb1a8e9fd03a66104a417a3696cc10cd989bced21faf74dbb041f0756b4a6bfd505215a880c7c952b318e058593526a6d989b433a01689d7f9b0
6
+ metadata.gz: 979765689077cda12673c1b857c339508581b26cb160d91f539f5f149c51869744299a4d7bdff9ac50d55c219f4023a44b9549cb5598b803838353a8ad448ace
7
+ data.tar.gz: 1253b356e08dbd1729a8f8fe4e3a014375c995524e95db8a81c7ba5e7b043e3798111a15966f3e968411b969047592b0775853378065b5cee5069695db9d608b
@@ -3,7 +3,7 @@ module Henry
3
3
  class Container
4
4
 
5
5
  # Current Gem version
6
- VERSION = ENV['gem_version'] || '0.1.61'
6
+ VERSION = ENV['gem_version'] || '0.1.62'
7
7
 
8
8
  end
9
9
 
@@ -49,7 +49,7 @@ module Henry
49
49
  #
50
50
  # @param [String] the attachments path.
51
51
  def self.output_path
52
- "#{Henry::Environment.config['output_directory']}/output" || DEFAULT_OUTPUT_DIRECTORY
52
+ File.path("#{Henry::Environment.config['output_directory']}/output" || DEFAULT_OUTPUT_DIRECTORY)
53
53
  end
54
54
 
55
55
  end
@@ -44,16 +44,6 @@ module Henry
44
44
  end
45
45
 
46
46
  def after_execute
47
- if self.execution.code != 'OK' && !(self.generated_reports || []).empty? && !(self.report_recipients || []).empty?
48
- tgz_path = "#{self.base_output_path}/#{DateTime.now.strftime(TIME_FORMAT)}_#{self.name}.tgz"
49
-
50
- `tar czf "#{tgz_path}" "#{self.generated_reports.join('" "')}"`
51
-
52
- Henry::EmailClient.send_file(tgz_path, self.report_recipients.uniq, "[Henry Reports] #{self.name}")
53
-
54
- `rm "#{tgz_path}"`
55
- end
56
-
57
47
  super
58
48
  end
59
49
 
@@ -36,16 +36,6 @@ module Henry
36
36
  end
37
37
 
38
38
  def after_execute
39
- if !(self.generated_reports || []).empty? && !(self.report_recipients || []).empty?
40
- tgz_path = "#{self.base_output_path}/#{DateTime.now.strftime(TIME_FORMAT)}_#{self.name}.tgz"
41
-
42
- `tar czf "#{tgz_path}" "#{self.generated_reports.join('" "')}"`
43
-
44
- Henry::EmailClient.send_file(tgz_path, self.report_recipients.uniq, "[Henry Reports] #{self.name}")
45
-
46
- `rm "#{tgz_path}"`
47
- end
48
-
49
39
  super
50
40
  end
51
41
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: henry-container
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.61
4
+ version: 0.1.62
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Decurnex
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-30 00:00:00.000000000 Z
11
+ date: 2013-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake