jamie 0.1.0.alpha3 → 0.1.0.alpha4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jamie/version.rb +1 -1
- data/lib/jamie.rb +14 -34
- metadata +2 -2
data/lib/jamie/version.rb
CHANGED
data/lib/jamie.rb
CHANGED
@@ -372,11 +372,18 @@ module Jamie
|
|
372
372
|
# @return [String] a command string to setup the test suite, or nil if no
|
373
373
|
# work needs to be performed
|
374
374
|
def setup_cmd
|
375
|
-
@setup_cmd ||=
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
375
|
+
@setup_cmd ||= if local_suite_files.empty?
|
376
|
+
nil
|
377
|
+
else
|
378
|
+
<<-INSTALL_CMD.gsub(/ {10}/, '')
|
379
|
+
#{sudo}#{ruby_bin} -e "$(cat <<"EOF"
|
380
|
+
#{install_script}
|
381
|
+
EOF
|
382
|
+
)"
|
383
|
+
#{sudo}#{jr_bin} install #{plugins.join(' ')}
|
384
|
+
#{sudo}rm -rf $(#{jr_bin} suitepath)/*
|
385
|
+
#{local_suite_files.map { |f| stream_file(f, remote_file(f)) }.join}
|
386
|
+
INSTALL_CMD
|
380
387
|
end
|
381
388
|
end
|
382
389
|
|
@@ -388,11 +395,7 @@ module Jamie
|
|
388
395
|
# @return [String] a command string to run the test suites, or nil if no
|
389
396
|
# work needs to be performed
|
390
397
|
def run_cmd
|
391
|
-
@run_cmd ||=
|
392
|
-
nil
|
393
|
-
else
|
394
|
-
plugins.map { |p| "#{sudo}#{jr_bin} #{p}" }.join(' && ')
|
395
|
-
end
|
398
|
+
@run_cmd ||= local_suite_files.empty? ? nil : "#{sudo}#{jr_bin} test"
|
396
399
|
end
|
397
400
|
|
398
401
|
private
|
@@ -406,30 +409,6 @@ module Jamie
|
|
406
409
|
raise ArgumentError, "'suite_name' is required." if suite_name.nil?
|
407
410
|
end
|
408
411
|
|
409
|
-
def install_cmd
|
410
|
-
@install_cmd ||= if plugins.empty?
|
411
|
-
nil
|
412
|
-
else
|
413
|
-
<<-INSTALL_CMD.gsub(/ {10}/, '')
|
414
|
-
#{sudo}#{ruby_bin} -e "$(cat <<"EOF"
|
415
|
-
#{install_script}
|
416
|
-
EOF
|
417
|
-
)"
|
418
|
-
#{sudo}#{jr_bin} install #{plugins.join(' ')}
|
419
|
-
INSTALL_CMD
|
420
|
-
end
|
421
|
-
end
|
422
|
-
|
423
|
-
def sync_cmd
|
424
|
-
@sync_cmd ||= if local_suite_files.empty?
|
425
|
-
nil
|
426
|
-
else
|
427
|
-
[ "#{sudo}rm -rf $(#{jr_bin} suitepath)/*",
|
428
|
-
local_suite_files.map { |f| stream_file(f, remote_file(f)) }.join
|
429
|
-
].join("\n")
|
430
|
-
end
|
431
|
-
end
|
432
|
-
|
433
412
|
def install_script
|
434
413
|
@install_script ||= begin
|
435
414
|
uri = URI.parse(INSTALL_URL)
|
@@ -464,6 +443,7 @@ module Jamie
|
|
464
443
|
jr_stream_file = "#{jr_bin} stream-file #{remote_path} #{md5} #{perms}"
|
465
444
|
|
466
445
|
<<-STREAMFILE.gsub(/^ {8}/, '')
|
446
|
+
echo " Uploading #{remote_path} (mode=#{perms})"
|
467
447
|
cat <<"__EOFSTREAM__" | #{sudo}#{jr_stream_file}
|
468
448
|
#{Base64.encode64(local_file)}
|
469
449
|
__EOFSTREAM__
|
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.
|
4
|
+
version: 0.1.0.alpha4
|
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-
|
12
|
+
date: 2012-12-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mixlib-shellout
|