mobilize-ssh 1.291 → 1.292

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: 7ed1a7197b5d22a82360be98d54de38cc907f491
4
- data.tar.gz: 9f13be4303ff61696a5e44087f0a88954585b4ae
3
+ metadata.gz: 87a291d0d6e8f5d871c45b316e644d8ee54a1bf4
4
+ data.tar.gz: 25b63e06dc3e577a97a3d6ad954dadee43df84eb
5
5
  SHA512:
6
- metadata.gz: eb9b1f01968105c9d79886008e653cc04ba50788437b571373a20e2588c9c1025ab91cea4cccf2224517b479b4dc4aa3e9c0924c860294574f03db19d90350e4
7
- data.tar.gz: 39035b250da3e23cb6a8330ca51433c59628bd8d8724c259d3701f57953b835927625d8b007fca23654d45de8b1802278f9d8c3a9ff2a35f968757e2ea4b26be
6
+ metadata.gz: 8203676d88a6e2e8bcbc687e7469efe16c834edb5c726059a75f826ef1e8d37095756355f7a97ebfa40d5bd06de92cac56bfbcacc28d617dbf7999aee4f683a2
7
+ data.tar.gz: 381fa7b2f4ccfea381175c096ab37dc731b7c5a58aeeb95e829c27b53131279a994551f1c2d48efade41734cda30aaa1be755cd414bee463e5312f5de2201436
@@ -208,7 +208,7 @@ module Mobilize
208
208
  s = Stage.where(:path=>stage_path).first
209
209
  u = s.job.runner.user
210
210
  user_name = s.params['user']
211
- node = s.params['node']
211
+ node = s.params['node']
212
212
  node = Ssh.default_node unless Ssh.nodes.include?(node)
213
213
  if user_name and !Ssh.sudoers(node).include?(u.name)
214
214
  raise "#{u.name} does not have su permissions for this node"
@@ -226,9 +226,12 @@ module Mobilize
226
226
  s.sources(gdrive_slot).each do |sdst|
227
227
  split_path = sdst.path.split("/")
228
228
  #if path is to stage output, name with stage name
229
- file_name = if split_path.last == "out" and
230
- (1..5).to_a.map{|n| "stage#{n.to_s}"}.include?(split_path[-2].to_s)
229
+ file_name = if (split_path.last == "out" and (1..5).to_a.map{|n| "stage#{n.to_s}"}.include?(split_path[-2].to_s))
230
+ #<jobname>/stage1/out
231
231
  "#{split_path[-2]}.out"
232
+ elsif (1..5).to_a.map{|n| "stage#{n.to_s}"}.include?(split_path.last[-6..-1])
233
+ #runner<jobname>stage1
234
+ "#{split_path.last[-6..-1]}.out"
232
235
  else
233
236
  split_path.last
234
237
  end
@@ -1,5 +1,5 @@
1
1
  module Mobilize
2
2
  module Ssh
3
- VERSION = "1.291"
3
+ VERSION = "1.292"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobilize-ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.291'
4
+ version: '1.292'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cassio Paes-Leme
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-27 00:00:00.000000000 Z
11
+ date: 2013-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mobilize-base