omf_rc_shm 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MWJkZWU4MTJjMDQ2YjRiODg2YWFmMzI0NGJmZmUyODZhMGE1ZDRiNg==
5
+ data.tar.gz: !binary |-
6
+ ZTk1N2NkNWVhMzk3ODU2MjIzNWE4N2EyYzJjYTRiOGI4YmE2M2E0Yw==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ ZDNiNGEwMjJiMTMxMWNhMzk0NDViZGU5ZWFhN2I1OWQzOWJkNDlkNzU2ZmMx
10
+ YzgwYjEwMGY1ZjAyZWZjN2YyY2ZjMjZhODZmYWRkMjA0NzZhNDJjMzIxMjRl
11
+ NDkzNmUwYjZlOGQ5MTEwZGRiZWZjYzI3M2VlMzEzMTFjY2FhYTM=
12
+ data.tar.gz: !binary |-
13
+ ZGI0MjljMzk4NTQ5MDQyZjFjMGIzN2ZiODY2ZDc2ODMyYzdhN2ZhNDcxYzI4
14
+ Mzk4ZmQ5ZmEyOWVlZjNjYjdjMjRlMmI1MmFiNzQ3ZjNlZjE4ZWJkYTY5MDY3
15
+ MDNkNjcwNGJjODIxODYzMmYzMWVmMmM5YzYzNDY2NjE2MjY5ZjM=
@@ -29,8 +29,10 @@ module OmfRc::ResourceProxy::ShmNode
29
29
  # if required, start the watchdog timer and periodically top it
30
30
  unless node.property.watchdog_timer.nil?
31
31
  info "Watchdog Timer started with interval: #{node.property.watchdog_timer}"
32
+ OmfRcShm.app.watchdog = File.open('/dev/watchdog', 'w')
32
33
  EventMachine.add_periodic_timer(node.property.watchdog_timer.to_i) do
33
- `echo "1" >/dev/watchdog`
34
+ OmfRcShm.app.watchdog << "1"
35
+ OmfRcShm.app.watchdog.flush
34
36
  end
35
37
  end
36
38
  end
@@ -8,10 +8,13 @@ module OmfRcShm
8
8
  include OmfRcShm::App::DSL
9
9
 
10
10
  attr_accessor :definitions
11
+ attr_accessor :watchdog
12
+
11
13
 
12
14
  def initialize
13
15
  super
14
16
  @definitions ||= Hash.new
17
+ @watchdog = nil
15
18
  end
16
19
 
17
20
  def load_definition(file_path)
@@ -1,3 +1,3 @@
1
1
  module OmfRcShm
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
3
3
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omf_rc_shm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
5
- prerelease:
4
+ version: 0.1.12
6
5
  platform: ruby
7
6
  authors:
8
7
  - NICTA
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-10-09 00:00:00.000000000 Z
11
+ date: 2013-11-27 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: omf_rc
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: json-jwt
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ! '>='
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ! '>='
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: cronedit
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ! '>='
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ! '>='
92
81
  - !ruby/object:Gem::Version
@@ -94,7 +83,6 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: listen
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
87
  - - ! '>='
100
88
  - !ruby/object:Gem::Version
@@ -102,7 +90,6 @@ dependencies:
102
90
  type: :runtime
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
94
  - - ! '>='
108
95
  - !ruby/object:Gem::Version
@@ -136,27 +123,26 @@ files:
136
123
  homepage: ''
137
124
  licenses:
138
125
  - MIT
126
+ metadata: {}
139
127
  post_install_message:
140
128
  rdoc_options: []
141
129
  require_paths:
142
130
  - lib
143
131
  required_ruby_version: !ruby/object:Gem::Requirement
144
- none: false
145
132
  requirements:
146
133
  - - ! '>='
147
134
  - !ruby/object:Gem::Version
148
135
  version: '0'
149
136
  required_rubygems_version: !ruby/object:Gem::Requirement
150
- none: false
151
137
  requirements:
152
138
  - - ! '>='
153
139
  - !ruby/object:Gem::Version
154
140
  version: '0'
155
141
  requirements: []
156
142
  rubyforge_project:
157
- rubygems_version: 1.8.24
143
+ rubygems_version: 2.1.10
158
144
  signing_key:
159
- specification_version: 3
145
+ specification_version: 4
160
146
  summary: OMF resource proxy extension for SHM project
161
147
  test_files:
162
148
  - test/scheduled_app_controller.rb