jvmargs 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jvmargs/nonstandard.rb +4 -0
- data/lib/jvmargs/rules.rb +2 -2
- data/lib/jvmargs/version.rb +1 -1
- metadata +3 -3
data/lib/jvmargs/nonstandard.rb
CHANGED
data/lib/jvmargs/rules.rb
CHANGED
@@ -25,7 +25,7 @@ module JVMArgs
|
|
25
25
|
end
|
26
26
|
|
27
27
|
|
28
|
-
def rule_heap_too_big(key="Xmx"
|
28
|
+
def rule_heap_too_big(args, key="Xmx")
|
29
29
|
total_ram = JVMArgs::Util.get_raw_num(JVMArgs::Util.get_system_ram_m)
|
30
30
|
new_ram = JVMArgs::Util.get_raw_num(args[:nonstandard][key].value)
|
31
31
|
if new_ram > total_ram
|
@@ -33,7 +33,7 @@ module JVMArgs
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
-
def rule_max_smaller_than_min(key="Xmx"
|
36
|
+
def rule_max_smaller_than_min(args, key="Xmx")
|
37
37
|
if args[:nonstandard]["Xms"].nil?
|
38
38
|
return
|
39
39
|
else
|
data/lib/jvmargs/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jvmargs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-04-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chef
|
@@ -115,6 +115,6 @@ rubyforge_project:
|
|
115
115
|
rubygems_version: 1.8.24
|
116
116
|
signing_key:
|
117
117
|
specification_version: 3
|
118
|
-
summary: jvmargs-0.0.
|
118
|
+
summary: jvmargs-0.0.4
|
119
119
|
test_files: []
|
120
120
|
has_rdoc:
|