simplews 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/simplews.rb CHANGED
@@ -256,12 +256,12 @@ EOT
256
256
 
257
257
  TYPES2WSDL = {
258
258
  :boolean => 'xsd:boolean',
259
- :string => 'xsd:string',
259
+ :string => 'xsd:string',
260
260
  :integer => 'xsd:integer',
261
- :float => 'xsd:float',
262
- :array => 'tns:ArrayOfString',
263
- :hash => 'tns:Map',
264
- :binary => 'xsd:base64Binary',
261
+ :float => 'xsd:float',
262
+ :array => 'tns:ArrayOfString',
263
+ :hash => 'tns:Map',
264
+ :binary => 'xsd:base64Binary',
265
265
  }
266
266
 
267
267
 
data/lib/simplews/jobs.rb CHANGED
@@ -382,7 +382,7 @@ class SimpleWS::Jobs < SimpleWS
382
382
  @workdir
383
383
  end
384
384
 
385
- def initialize(name, description, host, port, workdir = nil, *args)
385
+ def initialize(name, description, host = 'localhost' , port = '8081', workdir = nil, *args)
386
386
  super(name, description, host, port, *args)
387
387
 
388
388
  @workdir = workdir || "/tmp/#{ name }"
@@ -0,0 +1,28 @@
1
+ # This file add support for Rake pipelines.
2
+
3
+ require 'simplews/jobs'
4
+ require 'rake'
5
+
6
+ class SimpleWS::Jobs::Scheduler::Job
7
+
8
+ def rake(rakefile = "Rakefile")
9
+ $_current_job = self
10
+ Rake::Task.class_eval <<-'EOC'
11
+ alias_method :old_invoke, :invoke
12
+ def invoke
13
+ if comment.match(/^(\w+): (.*)/)
14
+ $_current_job.step($1, $2)
15
+ else
16
+ $_current_job.step(name, comment)
17
+ end
18
+ old_invoke
19
+ end
20
+ EOC
21
+
22
+ load rakefile
23
+ files = SimpleWS::Jobs::Scheduler::Job.job_info(job_name)[:results]
24
+ Rake::Task[files.first].invoke
25
+ end
26
+
27
+ end
28
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplews
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-25 00:00:00 +01:00
12
+ date: 2009-12-01 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -44,6 +44,7 @@ extra_rdoc_files:
44
44
  files:
45
45
  - lib/simplews.rb
46
46
  - lib/simplews/jobs.rb
47
+ - lib/simplews/rake.rb
47
48
  - LICENSE
48
49
  - README.rdoc
49
50
  has_rdoc: true