baleen 0.2.0 → 0.2.1

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: 035e682ad4f97f09bb5c815e554a51ec7cc1b386
4
- data.tar.gz: 9f35e198d08f95c1c4ab9392ac2c0c80a9d1d2f1
3
+ metadata.gz: fd2a98340a765f5a15844428986e79c7bfc8dba8
4
+ data.tar.gz: cba1770f9fab05d276391b98675e23f0be82747c
5
5
  SHA512:
6
- metadata.gz: 5c4fc69467591cc66009fe1790f40e7004b2aca8a4bc4c3815567fecd8a8ad828d3e87f167c644274f18d27a1ca94470d9c31b17bdb7b5ce1f15b9eec79acebb
7
- data.tar.gz: 04fab4da037103948064e604dee3ce47189abd594b5a030419358141c68753ee6851212b5a43b5678fc4ed97ca5a64abbf8e37dfb981db0470af812350043d66
6
+ metadata.gz: 6f087c723e6568932a90be20ff641d2f98ac4445e97956339952d20f9d71a89b382ff3e36750b55bf2172fc16078b25731354654f8c38667e33744fe1f9d4fe3
7
+ data.tar.gz: bcfcf9c4411f3796801a7bdfefff3f74924a670ea1e9a391ce58761509533f200a96be053bd439995cf07420854ab4ac54497666134c8f10266ec274521bc0e7
@@ -33,9 +33,18 @@ module Baleen
33
33
  @output.puts "Id: ".yellow + "#{r['container_id']}".green
34
34
  @output.puts "status code: ".yellow + "#{r['status_code']}".green
35
35
  @output.puts "feature file: ".yellow + "#{r['file']}".green
36
- @output.puts "logs:".yellow
37
- @output.puts "------------------------------------".yellow
38
- @output.puts "#{r['log']}".green
36
+
37
+ if r['stdout']
38
+ @output.puts "STDOUT:".yellow
39
+ @output.puts "------------------------------------".yellow
40
+ @output.puts "#{r['stdout'].join}".green
41
+ end
42
+
43
+ if r['stderr']
44
+ @output.puts "STDERR:".yellow
45
+ @output.puts "------------------------------------".yellow
46
+ @output.puts "#{r['stderr'].join}".red
47
+ end
39
48
  end
40
49
  end
41
50
 
@@ -71,10 +71,13 @@ module Baleen
71
71
  end
72
72
  end
73
73
 
74
+ stdout, stderr = *@container.attach(:stream => false, :stdout => true, :stderr => true, :logs => true)
75
+
74
76
  return {
75
77
  status_code: @container.json["State"]["ExitCode"],
76
78
  container_id: @container.id,
77
- log: @container.attach(:stream => false, :stdout => true, :stderr => true, :logs => true),
79
+ stdout: stdout,
80
+ stderr: stderr,
78
81
  file: @task.files,
79
82
  }
80
83
  end
@@ -35,7 +35,7 @@ module Baleen
35
35
  )
36
36
  runner = Baleen::Runner.new(task)
37
37
  result = runner.run
38
- @target_files = result[:log].split("\n")
38
+ @target_files = result[:stdout]
39
39
  end
40
40
 
41
41
  end
@@ -28,7 +28,7 @@ module Baleen
28
28
  def initialize
29
29
  config = Baleen::Configuration.instance
30
30
 
31
- if config.debug == DEBUG
31
+ if config.debug
32
32
  device = STDOUT
33
33
  else
34
34
  dir = File.join(config.dir, "log")
@@ -1,3 +1,3 @@
1
1
  module Baleen
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baleen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kim, Hirokuni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-27 00:00:00.000000000 Z
11
+ date: 2013-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler