omf_rc_shm 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWJkZWU4MTJjMDQ2YjRiODg2YWFmMzI0NGJmZmUyODZhMGE1ZDRiNg==
4
+ ODJlOThlMGNmNTliZGQ2ZDEwMTJlZWU3ODBlOTA0YWViYzE2MWE0OA==
5
5
  data.tar.gz: !binary |-
6
- ZTk1N2NkNWVhMzk3ODU2MjIzNWE4N2EyYzJjYTRiOGI4YmE2M2E0Yw==
6
+ ODJlZTIxZmUzZTZlZWNiOGNhYjM2Y2RiZDliYjNjYzdjYmExNzlmMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDNiNGEwMjJiMTMxMWNhMzk0NDViZGU5ZWFhN2I1OWQzOWJkNDlkNzU2ZmMx
10
- YzgwYjEwMGY1ZjAyZWZjN2YyY2ZjMjZhODZmYWRkMjA0NzZhNDJjMzIxMjRl
11
- NDkzNmUwYjZlOGQ5MTEwZGRiZWZjYzI3M2VlMzEzMTFjY2FhYTM=
9
+ OGUxMjdkNDA4MDYwNDdmNTM3MTE0OWIxMjM0Mzk3OTg3NWNiNGRlYzNiZjg0
10
+ NDEwMGM5YzgwMmU4ZTliNzc5NWQyNjdiY2MyODg2ZjJlZmVhNmE1MjQxMmQ2
11
+ ZjhhZjNlMWI5NGI5MDE0NjQwN2VlMGVlYjFkYWU2ZmM4YzI0M2U=
12
12
  data.tar.gz: !binary |-
13
- ZGI0MjljMzk4NTQ5MDQyZjFjMGIzN2ZiODY2ZDc2ODMyYzdhN2ZhNDcxYzI4
14
- Mzk4ZmQ5ZmEyOWVlZjNjYjdjMjRlMmI1MmFiNzQ3ZjNlZjE4ZWJkYTY5MDY3
15
- MDNkNjcwNGJjODIxODYzMmYzMWVmMmM5YzYzNDY2NjE2MjY5ZjM=
13
+ YWZmMjA3NzBiM2M4ZmNlN2VlNDdiNDc4YWMzNmY1NWFkNjg0YWE5OWRlNGU4
14
+ MTkyNzNkZGVlOTM2MjYzMDljMDhhYTlmZTkzZTRkNThlOWQyMWQ1NmMzYTk2
15
+ N2FlOGI4NjA4MzM2OGNiYzMyMDIyNjdmNDUwNTEwYjQzNGQ3MmM=
@@ -15,15 +15,14 @@ module OmfRc::ResourceProxy::ShmNode
15
15
  end
16
16
 
17
17
  hook :after_initial_configured do |node|
18
- OmfRcShm.app.load_definition(node.request_app_definition_file)
19
-
20
- info "Using app definition from '#{node.request_app_definition_file}'"
21
- OmfRcShm.app.definitions.each do |name, app_opts|
22
- info "Got definition #{app_opts.inspect}, now schedule it..."
23
- opts = app_opts.properties.merge(hrn: name, ruby_path: node.property.ruby_path, parent_id: node.uid)
24
- s_app = OmfRc::ResourceFactory.create(:scheduled_application, opts)
25
- OmfCommon.el.after(5) do
26
- s_app.configure_state(:scheduled)
18
+ unless node.request_app_definition_file.nil?
19
+ OmfRcShm.app.load_definition(node.request_app_definition_file)
20
+ info "Using app definition from '#{node.request_app_definition_file}'"
21
+ OmfRcShm.app.definitions.each do |name, app_opts|
22
+ info "Got definition #{app_opts.inspect}, now schedule it..."
23
+ opts = app_opts.properties.merge(hrn: name, ruby_path: node.property.ruby_path, parent_id: node.uid)
24
+ s_app = OmfRc::ResourceFactory.create(:scheduled_application, opts)
25
+ OmfCommon.el.after(5) { s_app.configure_state(:scheduled) }
27
26
  end
28
27
  end
29
28
  # if required, start the watchdog timer and periodically top it
@@ -1,3 +1,3 @@
1
1
  module OmfRcShm
2
- VERSION = "0.1.12"
2
+ VERSION = "0.1.13"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omf_rc_shm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - NICTA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-27 00:00:00.000000000 Z
11
+ date: 2014-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler