naf 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/models/logical/naf/application.rb +11 -9
- data/lib/naf/version.rb +1 -1
- data/naf.gemspec +1 -1
- metadata +2 -2
|
@@ -159,17 +159,19 @@ module Logical
|
|
|
159
159
|
end
|
|
160
160
|
|
|
161
161
|
def affinities
|
|
162
|
-
@app.application_schedule.application_schedule_affinity_tabs.
|
|
163
|
-
|
|
164
|
-
if tab.
|
|
165
|
-
tab.
|
|
162
|
+
if @app.application_schedule.try(:application_schedule_affinity_tabs).present?
|
|
163
|
+
@app.application_schedule.application_schedule_affinity_tabs.map do |tab|
|
|
164
|
+
if tab.affinity_short_name.present?
|
|
165
|
+
if tab.affinity_parameter.present? && tab.affinity_parameter > 0
|
|
166
|
+
tab.affinity_short_name + "(#{tab.affinity_parameter})"
|
|
167
|
+
else
|
|
168
|
+
tab.affinity_short_name
|
|
169
|
+
end
|
|
166
170
|
else
|
|
167
|
-
tab.
|
|
171
|
+
tab.affinity_classification_name + '_' + tab.affinity_name
|
|
168
172
|
end
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
end
|
|
172
|
-
end.join(", \n")
|
|
173
|
+
end.join(", \n")
|
|
174
|
+
end
|
|
173
175
|
end
|
|
174
176
|
|
|
175
177
|
end
|
data/lib/naf/version.rb
CHANGED
data/naf.gemspec
CHANGED
|
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
|
8
8
|
s.name = "naf"
|
|
9
9
|
s.version = Naf::VERSION
|
|
10
10
|
s.license = 'New BSD License'
|
|
11
|
-
s.date = '2014-01-
|
|
11
|
+
s.date = '2014-01-06'
|
|
12
12
|
s.summary = "Creates infrastructure for a customizable and robust Postgres-backed script scheduling/running"
|
|
13
13
|
s.description = "A cloud based distributed cron, application framework and operations console. Naf works as a distributed script running " +
|
|
14
14
|
"system that provides scheduling, logging, alarming, machine redundancy, and the ability to set constraint during script execution"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: naf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -12,7 +12,7 @@ authors:
|
|
|
12
12
|
autorequire:
|
|
13
13
|
bindir: bin
|
|
14
14
|
cert_chain: []
|
|
15
|
-
date: 2014-01-
|
|
15
|
+
date: 2014-01-06 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: rails
|