iron_worker_ng 0.12.0 → 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -185,6 +185,16 @@ code.merge_dir '../config' # will be in the same directory as worker
185
185
  code.merge_dir 'lib', 'utils' # will be in utils subdirectory, accessible as utils/lib
186
186
  ```
187
187
 
188
+ ### merge_deb(path)
189
+ ### deb(path)
190
+
191
+ Merges provided deb package into your worker. Please note that it should be x86-64 deb and we don't do any dependencies resolving. It might not work for some packages which expects to find things it predefined place (e.g. imagemagick looks for codecs in /usr/lib/ImageMagick-X.X.X/codecs). If you are uploading from non-debian OS, just use full remote build, so deb manipulations will be done on IronWorker servers. Following example brings power of [pdftk](http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/) to your worker.
192
+
193
+ ```ruby
194
+ code.merge_deb 'http://mirror.pnl.gov/ubuntu/pool/universe/p/pdftk/pdftk_1.44-3_amd64.deb'
195
+ code.merge_deb 'http://mirror.pnl.gov/ubuntu/pool/main/g/gcj-4.6/libgcj12_4.6.1-4ubuntu2_amd64.deb'
196
+ ```
197
+
188
198
  ## IronWorkerNG::Code::Ruby API
189
199
 
190
200
  Specific methods for ruby runtime.
@@ -72,6 +72,10 @@ module IronWorkerNG
72
72
  unless content.nil?
73
73
  IronCore::Logger.info 'IronWorkerNG', "Found workerfile with path='#{worker_file}'"
74
74
 
75
+ if IronWorkerNG::Fetcher.remote?(worker_file)
76
+ @full_remote_build = true
77
+ end
78
+
75
79
  eval(content)
76
80
 
77
81
  @base_dir = File.dirname(worker_file) == '.' ? '' : File.dirname(worker_file) + '/'
@@ -29,9 +29,7 @@ module IronWorkerNG
29
29
 
30
30
  `dpkg -x #{deb} #{tmp_dir_name}`
31
31
 
32
- ::Dir.glob(tmp_dir_name) do |path|
33
- container_add(container, '__debs__', path, true)
34
- end
32
+ container_add(container, '__debs__', tmp_dir_name, true)
35
33
 
36
34
  FileUtils.rm_rf(tmp_dir_name)
37
35
  end
@@ -1,5 +1,5 @@
1
1
  module IronWorkerNG
2
- VERSION = '0.12.0'
2
+ VERSION = '0.12.1'
3
3
 
4
4
  def self.version
5
5
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_worker_ng
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-10-26 00:00:00.000000000 Z
13
+ date: 2012-10-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: iron_core
@@ -51,7 +51,7 @@ dependencies:
51
51
  requirements:
52
52
  - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 0.9.9
55
55
  type: :runtime
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
@@ -59,7 +59,7 @@ dependencies:
59
59
  requirements:
60
60
  - - ! '>='
61
61
  - !ruby/object:Gem::Version
62
- version: '0'
62
+ version: 0.9.9
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: test-unit
65
65
  requirement: !ruby/object:Gem::Requirement