testlab 1.11.4 → 1.11.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,7 @@ class TestLab
8
8
  # @return [Hash] A hash detailing the status of the node.
9
9
  def status
10
10
  {
11
+ :ok => self.ok?.inspect,
11
12
  :id => self.id,
12
13
  :instance_id => @provider.instance_id,
13
14
  :state => @provider.state,
@@ -41,12 +42,13 @@ class TestLab
41
42
 
42
43
  if unknown_container_names.count > 0
43
44
  if unknown_running_container_names.count > 0
44
- @ui.stderr.puts(format_message("WARNING: You have *running* containers on your TestLab node which are not defined in your Labfile!".red.bold))
45
- @ui.stderr.puts(format_message("WARNING: You may need to manually stop the following containers: #{unknown_running_container_names.join(', ')}".red))
45
+ @ui.stderr.puts(format_message("WARNING: You have *running* containers on your TestLab node #{self.id.inspect} which are not defined in your Labfile!".red.bold))
46
+ @ui.stderr.puts(format_message(">>> You may need to manually stop the following containers: #{unknown_running_container_names.join(', ')}".red.bold))
47
+ result = false
46
48
  end
47
49
 
48
- @ui.stderr.puts(format_message("WARNING: You have containers on your TestLab node which are not defined in your Labfile!".yellow.bold))
49
- @ui.stderr.puts(format_message("WARNING: You may need to manually remove the following containers: #{unknown_container_names.join(', ')}".yellow))
50
+ @ui.stderr.puts(format_message("WARNING: You have containers on your TestLab node #{self.id.inspect} which are not defined in your Labfile!".red.bold))
51
+ @ui.stderr.puts(format_message(">>> You may need to manually remove the following containers: #{unknown_container_names.join(', ')}".red.bold))
50
52
  end
51
53
 
52
54
  result
data/lib/testlab/node.rb CHANGED
@@ -7,7 +7,7 @@ class TestLab
7
7
  #
8
8
  # @author Zachary Patten <zachary AT jovelabs DOT com>
9
9
  class Node < ZTK::DSL::Base
10
- STATUS_KEYS = %w(id instance_id state user ip port provider provisioners).map(&:to_sym)
10
+ STATUS_KEYS = %w(id instance_id ok state user ip port provider provisioners).map(&:to_sym)
11
11
 
12
12
  # Sub-Modules
13
13
  autoload :Actions, 'testlab/node/actions'
@@ -1,6 +1,6 @@
1
1
  class TestLab
2
2
  unless const_defined?(:VERSION)
3
3
  # TestLab Gem Version
4
- VERSION = "1.11.4"
4
+ VERSION = "1.11.5"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testlab
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.4
4
+ version: 1.11.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -350,7 +350,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
350
350
  version: '0'
351
351
  segments:
352
352
  - 0
353
- hash: -2336780269824604665
353
+ hash: -101400861789224396
354
354
  required_rubygems_version: !ruby/object:Gem::Requirement
355
355
  none: false
356
356
  requirements:
@@ -359,7 +359,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
359
359
  version: '0'
360
360
  segments:
361
361
  - 0
362
- hash: -2336780269824604665
362
+ hash: -101400861789224396
363
363
  requirements: []
364
364
  rubyforge_project:
365
365
  rubygems_version: 1.8.25