neptune 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +6 -0
  2. data/lib/neptune.rb +2 -20
  3. data/test/ts_neptune.rb +4 -2
  4. metadata +4 -4
data/README CHANGED
@@ -66,6 +66,12 @@ in for a link to that as it becomes available.
66
66
 
67
67
  Version History:
68
68
 
69
+ June 6, 2011 - 0.1.1 released, adding support for code
70
+ written in Go and R
71
+
72
+ June 4, 2011 - 0.1.0 released, adding verbose / quiet options
73
+ for users wishing to suppress stdout from Neptune jobs.
74
+
69
75
  May 28, 2011 - 0.0.9 released, adding generic SSA support
70
76
  for users wanting to use StochKit and other SSA codes.
71
77
 
data/lib/neptune.rb CHANGED
@@ -109,25 +109,7 @@ def preprocess_mpi(job_data)
109
109
  end
110
110
  end
111
111
 
112
- source_code = File.expand_path(job_data["@code"])
113
- unless File.exists?(source_code)
114
- file_not_found = "The specified code, #{source_code}," +
115
- " didn't exist. Please specify one that exists and try again"
116
- abort(file_not_found)
117
- end
118
-
119
- unless File.file?(source_code)
120
- should_be_file = "The specified code, #{source_code}, was not a file - " +
121
- " it was a directory or symbolic link. Please specify a file and try again."
122
- abort(should_be_file)
123
- end
124
-
125
- dest_code = "/tmp/thempicode"
126
-
127
- keyname = job_data["@keyname"]
128
- puts "Copying over code..." if verbose
129
- CommonFunctions.scp_to_shadow(source_code, dest_code, keyname)
130
- puts "Done copying code!" if verbose
112
+ # TODO: verify that source_code is in repo
131
113
  end
132
114
 
133
115
  def preprocess_ssa(job_data)
@@ -261,7 +243,7 @@ def neptune(params)
261
243
  end
262
244
 
263
245
  remote = "/tmp/neptune-input-#{rand(100000)}"
264
- scp_cmd = "scp #{ssh_args} #{local_file} root@#{shadow_ip}:#{remote}"
246
+ scp_cmd = "scp -r #{ssh_args} #{local_file} root@#{shadow_ip}:#{remote}"
265
247
  puts scp_cmd if verbose
266
248
  `#{scp_cmd}`
267
249
 
data/test/ts_neptune.rb CHANGED
@@ -26,9 +26,11 @@ msg = "AppScale is not currently running at " +
26
26
  "#{APPSCALE_HEAD_NODE_IP}. Please start AppScale and try again."
27
27
  abort(msg) unless TestHelper.is_appscale_running?(APPSCALE_HEAD_NODE_IP)
28
28
 
29
+ # TODO: refactor dfsp and dwssa to use the new ssa job type
30
+
29
31
  require 'tc_c'
30
- require 'tc_dfsp'
31
- require 'tc_dwssa'
32
+ #require 'tc_dfsp'
33
+ #require 'tc_dwssa'
32
34
  require 'tc_erlang'
33
35
  require 'tc_mapreduce'
34
36
  require 'tc_mpi'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neptune
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Bunch
@@ -15,7 +15,7 @@ autorequire: neptune
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-04 00:00:00 -07:00
18
+ date: 2011-06-06 00:00:00 -07:00
19
19
  default_executable: neptune
20
20
  dependencies: []
21
21