testlab 1.14.0 → 1.15.0

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.
@@ -35,7 +35,7 @@ class TestLab
35
35
 
36
36
  case action
37
37
  when :open then
38
- @start_time = Time.now
38
+ @start_time ||= Time.now
39
39
  if (@total_size == 0)
40
40
  @total_size = args[0].size
41
41
  end
@@ -96,7 +96,7 @@ EOF
96
96
 
97
97
  @total_size = self.node.ssh.sftp.stat!(remote_file).size
98
98
 
99
- self.node.download(remote_file, local_file, :on_progress => method(:progress_callback), :read_size => READ_SIZE)
99
+ self.node.download(remote_file, local_file, :on_progress => method(:progress_callback), :read_size => READ_SIZE, :use_scp => true)
100
100
 
101
101
  self.node.bootstrap(<<-EOF)
102
102
  rm -fv #{remote_file}
@@ -143,7 +143,7 @@ EOF
143
143
  self.create
144
144
 
145
145
  self.node.exec(%(sudo rm -fv #{remote_file}), :silence => true, :ignore_exit_status => true)
146
- self.node.upload(local_file, remote_file, :on_progress => method(:progress_callback), :read_size => READ_SIZE)
146
+ self.node.upload(local_file, remote_file, :on_progress => method(:progress_callback), :read_size => READ_SIZE, :use_scp => true)
147
147
 
148
148
  please_wait(:ui => @ui, :message => format_object_action(self, 'Expand', :cyan)) do
149
149
  self.node.bootstrap(<<-EOF)
@@ -7,7 +7,7 @@ class TestLab
7
7
  #
8
8
  # Attempts to analyze the current node and report any issues.
9
9
  #
10
- # @result [Boolean] True if everything is OK; false otherwise.
10
+ # @return [Boolean] True if everything is OK; false otherwise.
11
11
  def doctor
12
12
  if self.dead?
13
13
  @ui.stderr.puts(format_message("The node #{self.id.inspect} is dead! (Did you forget to up or build the node?)".red.bold))
@@ -1,6 +1,6 @@
1
1
  class TestLab
2
2
  unless const_defined?(:VERSION)
3
3
  # TestLab Gem Version
4
- VERSION = "1.14.0"
4
+ VERSION = "1.15.0"
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.14.0
4
+ version: 1.15.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-14 00:00:00.000000000 Z
12
+ date: 2013-12-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gli
@@ -351,7 +351,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
351
351
  version: '0'
352
352
  segments:
353
353
  - 0
354
- hash: -2303575706409532818
354
+ hash: 2276873764292884095
355
355
  required_rubygems_version: !ruby/object:Gem::Requirement
356
356
  none: false
357
357
  requirements:
@@ -360,7 +360,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
360
360
  version: '0'
361
361
  segments:
362
362
  - 0
363
- hash: -2303575706409532818
363
+ hash: 2276873764292884095
364
364
  requirements: []
365
365
  rubyforge_project:
366
366
  rubygems_version: 1.8.25