Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add -o option (num nodes) to fuzed local

  • Loading branch information...
commit 082f5c48e65356a02c5db84d31abf756c9ea97dc 1 parent 87b5880
@mojombo mojombo authored
Showing with 10 additions and 2 deletions.
  1. +6 −0 Rakefile
  2. +4 −2 bin/fuzed
View
6 Rakefile
@@ -27,6 +27,12 @@ task :build do
sh "erlc #{ERLC_FLAGS} elibs/*.erl"
end
+task :install do
+ sh "rake clean"
+ sh "rake package"
+ sh "sudo gem install pkg/fuzed*.gem"
+end
+
task :econsole do
sh "erl #{ERLR_FLAGS} -sname fuzed_console_#{$$}"
end
View
6 bin/fuzed
@@ -64,6 +64,7 @@ when 'join'
puts cmd
exec(cmd)
when 'local'
+ num_nodes = options[:num_nodes]
rails = File.expand_path('.')
config = "/tmp/fuzed-local.conf"
@@ -76,8 +77,9 @@ when 'local'
cmd = %Q{yaws --conf #{config} \
--pa #{Fuzed.relative 'ebin'} \
--runmod stack \
- --erlarg '+Bc +K true -smp enabled -fuzed_node command \
- "\\\"fuzed-adapter #{rails}\\\""'}.squeeze(' ')
+ --erlarg '+Bc +K true -smp enabled \
+ -fuzed_node command "\\\"fuzed-adapter #{rails}\\\"" \
+ -fuzed_node num_nodes #{num_nodes || 1}'}.squeeze(' ')
puts(cmd)
exec(cmd)
else
Please sign in to comment.
Something went wrong with that request. Please try again.