jamie 0.1.0.alpha6 → 0.1.0.alpha7

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,6 +31,7 @@ module Jamie
31
31
 
32
32
  def verify(instance)
33
33
  if instance.jr.run_cmd
34
+ ssh instance, instance.jr.sync_cmd
34
35
  ssh instance, instance.jr.run_cmd
35
36
  else
36
37
  super
data/lib/jamie/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Jamie
4
4
 
5
- VERSION = "0.1.0.alpha6"
5
+ VERSION = "0.1.0.alpha7"
6
6
  end
data/lib/jamie.rb CHANGED
@@ -399,8 +399,7 @@ module Jamie
399
399
  end
400
400
 
401
401
  # Returns a command string which installs the Jamie Runner (jr), installs
402
- # all required jr plugins for the suite, and transfers all suite test
403
- # files.
402
+ # all required jr plugins for the suite.
404
403
  #
405
404
  # If no work needs to be performed, for example if there are no tests for
406
405
  # the given suite, then `nil` will be returned.
@@ -417,6 +416,23 @@ module Jamie
417
416
  EOF
418
417
  )"
419
418
  #{sudo}#{jr_bin} install #{plugins.join(' ')}
419
+ INSTALL_CMD
420
+ end
421
+ end
422
+
423
+ # Returns a command string which transfers all suite test files to the
424
+ # instance.
425
+ #
426
+ # If no work needs to be performed, for example if there are no tests for
427
+ # the given suite, then `nil` will be returned.
428
+ #
429
+ # @return [String] a command string to transfer all suite test files, or
430
+ # nil if no work needs to be performed.
431
+ def sync_cmd
432
+ @sync_cmd ||= if local_suite_files.empty?
433
+ nil
434
+ else
435
+ <<-INSTALL_CMD.gsub(/ {10}/, '')
420
436
  #{sudo}rm -rf $(#{jr_bin} suitepath)/*
421
437
  #{local_suite_files.map { |f| stream_file(f, remote_file(f)) }.join}
422
438
  INSTALL_CMD
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jamie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.alpha6
4
+ version: 0.1.0.alpha7
5
5
  prerelease: 6
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: 2012-12-13 00:00:00.000000000 Z
12
+ date: 2012-12-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor