Permalink
Browse files

order args file output

  • Loading branch information...
dreverri committed Aug 18, 2012
1 parent c50183d commit 512815cceaa0970fa99c13944bafe7c0a64fa17b
Showing with 7 additions and 7 deletions.
  1. +2 −2 lib/erlang_template_helper.rb
  2. +5 −5 test/examples/vm.args
@@ -192,14 +192,14 @@ def initialize(args)
def expand(k1, v1)
case v1
when ::Hash
- v1.map { |k2, v2| expand("#{k1} #{k2}", v2) }
+ v1.sort.map { |k2, v2| expand("#{k1} #{k2}", v2) }
else
"#{k1} #{v1}"
end
end
def to_a
- @args.map { |k, v| expand(k, v) }.flatten
+ @args.sort.map { |k, v| expand(k, v) }.flatten
end
def to_s
View
@@ -1,8 +1,8 @@
--name riak@127.0.0.1
--setcookie riak
-+K true
+A 64
++K true
+W w
--env ERL_MAX_PORTS 4096
--env ERL_FULLSWEEP_AFTER 0
-env ERL_CRASH_DUMP ./log/erl_crash.dump
+-env ERL_FULLSWEEP_AFTER 0
+-env ERL_MAX_PORTS 4096
+-name riak@127.0.0.1
+-setcookie riak

0 comments on commit 512815c

Please sign in to comment.