public
Fork of KirinDave/fuzed
Description: A new revision of Fuzed, the Erlang-based frontend for web apps.
Clone URL: git://github.com/mojombo/fuzed.git
Search Repo:
Renaming all instances of id2 to fuzed.
KirinDave (author)
Fri May 02 23:13:41 -0700 2008
commit  328764d039958828eda244e01fda4b57bc0e8ca5
tree    1a9b6830d3880d6fed062336409152d0f43d032c
parent  19568e88c5d923cb10d4df541599f43e111df265
...
4
5
6
7
 
8
9
10
...
4
5
6
 
7
8
9
10
0
@@ -4,7 +4,7 @@ require 'rake'
0
 
0
 ERLC_TEST_FLAGS = "-pa ../ebin/eunit -I .. -I ../etest -I ../include/eunit -DTEST"
0
 ERLC_FLAGS = "+debug_info -W2 -I ../include -I ../include/thrift -I ../include/yaws -o ../ebin"
0
-ID2_VERSION = "0.4.13"
0
+FUZED_VERSION = "0.4.13"
0
 
0
 task :default do
0
   cd "elibs"
...
3
4
5
6
7
8
9
 
 
 
 
10
11
12
 
13
14
15
 
16
17
18
19
20
21
22
 
 
23
24
 
25
26
27
28
29
30
31
 
32
33
34
...
43
44
45
46
 
47
48
...
3
4
5
 
 
 
 
6
7
8
9
10
11
 
12
13
14
 
15
16
17
18
19
20
 
 
21
22
23
 
24
25
26
27
28
29
30
 
31
32
33
34
...
43
44
45
 
46
47
48
0
@@ -3,32 +3,32 @@
0
 require 'digest/md5'
0
 require 'resolv'
0
 
0
-if __FILE__ == "/p/bin/id2"
0
- $:.unshift(File.join("/p/libexec/erlang/id2/rlibs"))
0
- $:.unshift(File.join("/p/libexec/erlang/id2/rlibs/cli"))
0
- ID2_ROOT = "/p/libexec/erlang/id2"
0
+if __FILE__ == "/p/bin/fuzed"
0
+ $:.unshift(File.join("/p/libexec/erlang/fuzed/rlibs"))
0
+ $:.unshift(File.join("/p/libexec/erlang/fuzed/rlibs/cli"))
0
+ FUZED_ROOT = "/p/libexec/erlang/fuzed"
0
 else
0
   $:.unshift(File.join(File.dirname(__FILE__), *%w[.. rlibs]))
0
- ID2_ROOT = File.join(File.dirname(__FILE__), *%w[..])
0
+ FUZED_ROOT = File.join(File.dirname(__FILE__), *%w[..])
0
 end
0
 
0
-CMD_LINE_PATH = File.join(ID2_ROOT, *%w[rlibs cli])
0
+CMD_LINE_PATH = File.join(FUZED_ROOT, *%w[rlibs cli])
0
 CMD_LINE_COMMANDS = Dir[CMD_LINE_PATH + "/*.rb"].map { |fname| File.basename(fname).split(".")[0].downcase }
0
 $:.unshift(CMD_LINE_PATH)
0
 
0
 
0
 DEFAULT_NODE_NAME = `hostname -s`.chomp + "-#{rand(9999)}"
0
-DEFAULT_MASTER_NODE = "master@id2-dev.powerset.com"
0
-DEFAULT_REMOTE_RUBY = "http://id2-dev.powerset.com:9001/code"
0
+DEFAULT_MASTER_NODE = "master@fuzed-dev.powerset.com"
0
+DEFAULT_REMOTE_RUBY = "http://fuzed-dev.powerset.com:9001/code"
0
 DEFAULT_ERLANG_CODEPATHS = %w[ebin/yaws ebin/eunit etest ebin/thrift ebin]
0
-DEFAULT_BOOT_DIR = "/p/conf/id2/"
0
+DEFAULT_BOOT_DIR = "/p/conf/fuzed/"
0
 
0
 def cookie_hash(node)
0
   Digest::MD5.hexdigest(node + "-powerset")
0
 end
0
 
0
 def rel(path)
0
- File.join(ID2_ROOT, path)
0
+ File.join(FUZED_ROOT, path)
0
 end
0
 
0
 def code_paths
0
@@ -43,5 +43,5 @@ command = ARGV[0].downcase
0
 if CMD_LINE_COMMANDS.include? command
0
   require command
0
 else
0
- puts "Invalid command! Valid commands for id2 are:\n#{CMD_LINE_COMMANDS.sort.join(", ")}"
0
+ puts "Invalid command! Valid commands for fuzed are:\n#{CMD_LINE_COMMANDS.sort.join(", ")}"
0
 end
0
\ No newline at end of file
...
2
3
4
5
 
6
7
8
...
2
3
4
 
5
6
7
8
0
@@ -2,7 +2,7 @@
0
 [{sasl, [
0
          {sasl_error_logger, false},
0
          {errlog_type, error},
0
- {error_logger_mf_dir,"/p/log/id2"},
0
+ {error_logger_mf_dir,"/p/log/fuzed"},
0
          {error_logger_mf_maxbytes,52428800}, % 50 MB
0
          {error_logger_mf_maxfiles, 10}
0
 ]}].
...
1
 
2
3
4
5
 
 
6
7
 
8
9
...
 
1
2
3
 
 
4
5
6
 
7
8
9
0
@@ -1,9 +1,9 @@
0
-{application, id2,
0
+{application, fuzed,
0
   [{description, "Fuzed master node"},
0
    {vsn, "0.0.0"},
0
- {modules, [id2_app, id2_supervisor, resource_fountain, resource_pool, pool_sweeper, id2_code_monitor, response_error_logger, logger]},
0
- {registered, [resource_fountain, resource_pool, id2_supervisor, pool_sweeper, id2_code_monitor]},
0
+ {modules, [fuzed_app, fuzed_supervisor, resource_fountain, resource_pool, pool_sweeper, fuzed_code_monitor, response_error_logger, logger]},
0
+ {registered, [resource_fountain, resource_pool, fuzed_supervisor, pool_sweeper, fuzed_code_monitor]},
0
    {applications, [kernel, stdlib]},
0
- {mod, {id2_app, []}},
0
+ {mod, {fuzed_app, []}},
0
    {start_phases, []}
0
   ]}.
...
1
2
 
 
3
4
5
 
 
6
7
 
8
9
10
...
 
 
1
2
3
 
 
4
5
6
 
7
8
9
10
0
@@ -1,9 +1,9 @@
0
-{application, id2_node,
0
- [{description, "ID2 Handler Node"},
0
+{application, fuzed_node,
0
+ [{description, "FUZED Handler Node"},
0
    {vsn, "0.4.0"},
0
- {modules, [id2_node_app, id2_node_supervisor, resource_manager]},
0
- {registered, [resource_manager, id2_node_supervisor]},
0
+ {modules, [fuzed_node_app, fuzed_node_supervisor, resource_manager]},
0
+ {registered, [resource_manager, fuzed_node_supervisor]},
0
    {applications, [kernel, stdlib]},
0
- {mod, {id2_node_app, []}},
0
+ {mod, {fuzed_node_app, []}},
0
    {start_phases, []}
0
   ]}.
0
\ No newline at end of file
...
4
5
6
7
 
8
9
10
...
54
55
56
57
 
58
59
60
 
61
62
63
...
4
5
6
 
7
8
9
10
...
54
55
56
 
57
58
59
 
60
61
62
63
0
@@ -4,7 +4,7 @@
0
 -export([out/1, rpc_response_point/3, rpc_translator/2, process_detail_rval/1]).
0
 -include("../include/yaws/yaws.hrl").
0
 -include("../include/yaws/yaws_api.hrl").
0
--include("../include/id2.hrl").
0
+-include("../include/fuzed.hrl").
0
 
0
 -ifdef(TEST).
0
 -include("../etest/generic_json_responder_test.erl").
0
@@ -54,10 +54,10 @@ rpc_translator(Method, TupleList) ->
0
         Pool -> {result, jsonify_method_list(resource_pool:api_definition(Pool))}
0
       end;
0
     unpublish ->
0
- application:set_env(id2, in_rotation, false),
0
+ application:set_env(fuzed, in_rotation, false),
0
       {result, "unpublished"};
0
     publish ->
0
- application:set_env(id2, in_rotation, true),
0
+ application:set_env(fuzed, in_rotation, true),
0
       {result, "published"};
0
     nodes_in_pool ->
0
       case resource_fountain:best_pool_for_details_match(Details) of
...
1
 
2
3
4
5
6
7
8
 
 
9
...
 
1
2
3
4
5
 
 
6
7
8
9
0
@@ -1,7 +1,7 @@
0
--module(id2).
0
+-module(fuzed).
0
 
0
 -export([start/0]).
0
 
0
 start() ->
0
- application:load(id2),
0
- application:start(id2).
0
\ No newline at end of file
0
+ application:load(fuzed),
0
+ application:start(fuzed).
0
\ No newline at end of file
...
1
 
2
3
4
5
6
7
 
8
9
10
11
...
 
1
2
3
4
5
6
 
7
8
9
10
11
0
@@ -1,10 +1,10 @@
0
--module(id2_app).
0
+-module(fuzed_app).
0
 -behaviour(application).
0
 -export([start/2, stop/1]).
0
 
0
 start(_Type, StartArgs) ->
0
   net_kernel:set_net_ticktime(30),
0
- id2_supervisor:start_link(StartArgs).
0
+ fuzed_supervisor:start_link(StartArgs).
0
   
0
 stop(_State) ->
0
   ok.
0
\ No newline at end of file
...
1
2
 
3
4
5
 
6
7
8
...
1
 
2
3
4
 
5
6
7
8
0
@@ -1,8 +1,8 @@
0
 %%%-------------------------------------------------------------------
0
-%%% File : /Users/dfayram/Projects/new_id2/elibs/id2_code_monitor.erl
0
+%%% File : /Users/dfayram/Projects/new_fuzed/elibs/fuzed_code_monitor.erl
0
 %%% Author :
0
 %%%-------------------------------------------------------------------
0
--module(id2_code_monitor).
0
+-module(fuzed_code_monitor).
0
 -behaviour(gen_server).
0
 
0
 %% API
...
1
 
2
3
4
5
6
7
8
 
 
9
...
 
1
2
3
4
5
 
 
6
7
8
9
0
@@ -1,7 +1,7 @@
0
--module(id2_node).
0
+-module(fuzed_node).
0
 
0
 -export([start/0]).
0
 
0
 start() ->
0
- application:load(id2_node),
0
- application:start(id2_node).
0
\ No newline at end of file
0
+ application:load(fuzed_node),
0
+ application:start(fuzed_node).
0
\ No newline at end of file
...
1
 
2
3
4
5
6
7
 
8
9
10
11
...
 
1
2
3
4
5
6
 
7
8
9
10
11
0
@@ -1,10 +1,10 @@
0
--module(id2_node_app).
0
+-module(fuzed_node_app).
0
 -behaviour(application).
0
 -export([start/2, stop/1]).
0
 
0
 start(_Type, StartArgs) ->
0
   net_kernel:set_net_ticktime(30),
0
- id2_node_supervisor:start_link(StartArgs).
0
+ fuzed_node_supervisor:start_link(StartArgs).
0
   
0
 stop(_State) ->
0
   ok.
0
\ No newline at end of file
...
1
2
3
4
 
5
6
7
 
8
9
10
...
1
2
3
 
4
5
6
 
7
8
9
10
0
@@ -1,10 +1,10 @@
0
 %%%-------------------------------------------------------------------
0
 %%% Author : Tom Preston-Werner
0
 %%%-------------------------------------------------------------------
0
--module(id2_node_supervisor).
0
+-module(fuzed_node_supervisor).
0
 -behaviour(supervisor).
0
 -export([start/0, start_shell/0, start_link/1, init/1]).
0
--include("../include/id2.hrl").
0
+-include("../include/fuzed.hrl").
0
 
0
 % Supervisor Functions
0
 
...
1
 
2
3
4
5
6
 
7
8
9
...
 
1
2
3
4
5
 
6
7
8
9
0
@@ -1,9 +1,9 @@
0
--module(id2_status).
0
+-module(fuzed_status).
0
 -include("../include/yaws/yaws_api.hrl").
0
 -compile(export_all).
0
 
0
 out(Arg) ->
0
- case application:get_env(id2, in_rotation) of
0
+ case application:get_env(fuzed, in_rotation) of
0
     {ok, true} ->
0
       case extract_data(Arg#arg.appmoddata) of
0
         any ->
...
1
2
3
4
 
5
6
7
8
9
10
 
11
12
13
...
17
18
19
20
 
21
22
23
...
33
34
35
36
37
38
 
 
 
39
...
1
2
3
 
4
5
6
7
8
9
 
10
11
12
13
...
17
18
19
 
20
21
22
23
...
33
34
35
 
 
 
36
37
38
39
0
@@ -1,13 +1,13 @@
0
 %%%-------------------------------------------------------------------
0
 %%% Author : Tom Preston-Werner
0
 %%%-------------------------------------------------------------------
0
--module(id2_supervisor).
0
+-module(fuzed_supervisor).
0
 -behaviour(supervisor).
0
 
0
 -export([start/0, start_shell/0, start_link/1, init/1]).
0
 
0
 start() ->
0
- application:set_env(id2, in_rotation, true),
0
+ application:set_env(fuzed, in_rotation, true),
0
   spawn(fun() ->
0
     supervisor:start_link({local, ?MODULE}, ?MODULE, _Arg = [])
0
   end).
0
@@ -17,7 +17,7 @@ start_shell() ->
0
   unlink(Pid).
0
   
0
 start_link(Args) ->
0
- application:set_env(id2, in_rotation, true),
0
+ application:set_env(fuzed, in_rotation, true),
0
   supervisor:start_link({local, ?MODULE}, ?MODULE, Args).
0
   
0
 init([]) ->
0
@@ -33,7 +33,7 @@ init([]) ->
0
      {pool_sweeper,
0
        {pool_sweeper, start_link, []},
0
        permanent, 10000, worker, [pool_sweeper]},
0
- {id2_code_monitor,
0
- {id2_code_monitor, start_link, []},
0
- permanent, 10000, worker, [id2_code_monitor]}
0
+ {fuzed_code_monitor,
0
+ {fuzed_code_monitor, start_link, []},
0
+ permanent, 10000, worker, [fuzed_code_monitor]}
0
     ]}}.
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
--module(id2_tools).
0
+-module(fuzed_tools).
0
 -compile(export_all).
0
 
0
 testing_bootstrap() ->
...
28
29
30
31
 
32
33
34
...
28
29
30
 
31
32
33
34
0
@@ -28,7 +28,7 @@ yaws_global_configs(Port, DocRoot) ->
0
               listen = {0,0,0,0},
0
               docroot = DocRoot,
0
               appmods = [{"api", generic_json_responder},
0
- {"status", id2_status}]},
0
+ {"status", fuzed_status}]},
0
   {GC,SC}.
0
 
0
 yaws_begin_server({GC,SC}) ->
...
5
6
7
8
 
9
10
11
...
5
6
7
 
8
9
10
11
0
@@ -5,7 +5,7 @@
0
          api/1, api_signature/1, safely_send_call_to_pool/4, safely_send_call_to_pool/5, send_call/3, send_call/4,
0
          heat/2]).
0
 
0
--include("id2.hrl").
0
+-include("fuzed.hrl").
0
 
0
 -ifdef(TEST).
0
 -include("../etest/node_api_test.erl").
...
8
9
10
11
 
12
13
14
...
8
9
10
 
11
12
13
14
0
@@ -8,7 +8,7 @@
0
 -export([init/1, handle_call/3, handle_cast/2, handle_info/2,
0
          terminate/2, code_change/3]).
0
 
0
--record(state, {fname = "/p/log/id2/response_errors.log",
0
+-record(state, {fname = "/p/log/fuzed/response_errors.log",
0
                 active = false,
0
                 fhandle}).
0
 
...
3
4
5
6
7
8
 
 
9
...
3
4
5
 
 
6
7
8
9
0
@@ -3,5 +3,5 @@
0
 -export([start/0]).
0
 
0
 start() ->
0
- id2:start(),
0
- id2_node:start().
0
\ No newline at end of file
0
+ fuzed:start(),
0
+ fuzed_node:start().
0
\ No newline at end of file
...
1
2
 
3
4
5
...
15
16
17
18
 
19
20
21
...
56
57
58
59
60
 
 
61
62
63
64
65
 
66
67
 
68
69
70
71
 
72
73
74
...
1
 
2
3
4
5
...
15
16
17
 
18
19
20
21
...
56
57
58
 
 
59
60
61
62
63
64
 
65
66
 
67
68
69
70
 
71
72
73
74
0
@@ -1,5 +1,5 @@
0
 require 'yaml'
0
-require 'id2_auto_config'
0
+require 'fuzed_auto_config'
0
 
0
 
0
 def finish_spec(yml_spec, autoconf)
0
@@ -15,7 +15,7 @@ end
0
 
0
 def client_spec_2_cmdline(yml_spec, autoconf)
0
   yml_spec = finish_spec(yml_spec, autoconf)
0
- cmd_set = ["id2 join -d"]
0
+ cmd_set = ["fuzed join -d"]
0
   cmd_set << "-x" if yml_spec["xlew"]
0
   cmd_set << "-n '" + yml_spec["name"] + "'"
0
   cmd_set << "-f " + yml_spec["kind"]
0
@@ -56,19 +56,19 @@ def read_configs(path)
0
   end
0
 end
0
 
0
-id2_bootpath = ARGV[1] || DEFAULT_BOOT_DIR
0
-environment = ID2AutoConfig.new
0
+fuzed_bootpath = ARGV[1] || DEFAULT_BOOT_DIR
0
+environment = FUZEDAutoConfig.new
0
 
0
 begin
0
   commands = []
0
   if environment.is_master?
0
- commands << "id2 start -d -n #{environment.master_nodename}"
0
+ commands << "fuzed start -d -n #{environment.master_nodename}"
0
   end
0
- configs = read_configs(id2_bootpath)
0
+ configs = read_configs(fuzed_bootpath)
0
   commands += configs.map {|x| client_spec_2_cmdline(x, environment)}
0
   commands.each {|x| puts x ; `#{x}` ; sleep(1) }
0
 rescue
0
- puts "Failed to boot ID2 during configuration stage.\nError:#{$!}"
0
+ puts "Failed to boot FUZED during configuration stage.\nError:#{$!}"
0
   puts $!.backtrace.join("\n")
0
   exit(1)
0
 end
...
1
 
2
3
 
4
5
6
7
 
 
8
9
10
...
15
16
17
18
 
19
20
21
...
 
1
2
 
3
4
5
 
 
6
7
8
9
10
...
15
16
17
 
18
19
20
21
0
@@ -1,10 +1,10 @@
0
-require 'id2_auto_config'
0
+require 'fuzed_auto_config'
0
 
0
-environment = ID2AutoConfig.new
0
+environment = FUZEDAutoConfig.new
0
 options = {:target => :default, :master => :default}
0
 OptionParser.new do |opts|
0
- opts.banner = "Usage: id2 console [target/master]"
0
- opts.on("-t", "--target TARGETNODE", "Node to target, defaults to your cluster's master or id2-dev") do |arg|
0
+ opts.banner = "Usage: fuzed console [target/master]"
0
+ opts.on("-t", "--target TARGETNODE", "Node to target, defaults to your cluster's master or fuzed-dev") do |arg|
0
     options[:target] = arg
0
   end
0
   
0
@@ -15,7 +15,7 @@ end.parse!
0
 options[:target] = environment.master_nodename if options[:target] == :default
0
 options[:master] = options[:target] if options[:master] == :default
0
 
0
-line = %{erl -setcookie #{cookie_hash(options[:master])} -remsh #{options[:target]} -name 'id2-shell-#{rand(1000)}'}
0
+line = %{erl -setcookie #{cookie_hash(options[:master])} -remsh #{options[:target]} -name 'fuzed-shell-#{rand(1000)}'}
0
 puts line
0
 exec(line)
0
 
...
2
3
4
5
6
7
 
 
 
8
9
10
...
23
24
25
26
 
27
28
29
...
34
35
36
37
38
 
 
39
40
41
42
43
44
45
 
46
47
48
...
90
91
92
93
 
94
95
96
...
119
120
121
122
123
124
 
 
 
125
126
127
 
 
128
129
...
2
3
4
 
 
 
5
6
7
8
9
10
...
23
24
25
 
26
27
28
29
...
34
35
36
 
 
37
38
39
40
41
42
43
44
 
45
46
47
48
...
90
91
92
 
93
94
95
96
...
119
120
121
 
 
 
122
123
124
125
 
 
126
127
128
129
0
@@ -2,9 +2,9 @@ def create_spec_list(options)
0
   spec_list = []
0
   result = ""
0
   result.concat("/p/bin/xlew ") if options[:xlew]
0
- result.concat("ruby -I/p/libexec/id2 #{ID2_ROOT + "/rlibs/pontoon.rb "}")
0
- raise "You must specify an id2 file to join the id2 cluster!" unless options[:id2file]
0
- result.concat(options[:id2file] + " ")
0
+ result.concat("ruby -I/p/libexec/fuzed #{FUZED_ROOT + "/rlibs/pontoon.rb "}")
0
+ raise "You must specify an fuzed file to join the fuzed cluster!" unless options[:fuzedfile]
0
+ result.concat(options[:fuzedfile] + " ")
0
   result.concat(%{#{options[:remote_ruby] || DEFAULT_REMOTE_RUBY} })
0
   result.concat(%{--tags="#{options[:tags]}" }) if options[:tags]
0
   roles = []
0
@@ -23,7 +23,7 @@ end
0
 
0
 options = {}
0
 OptionParser.new do |opts|
0
- opts.banner = "Usage: id2 command [options]"
0
+ opts.banner = "Usage: fuzed command [options]"
0
   
0
   opts.on("-z HOSTNAME", "--magic HOSTNAME", "Set smart details based off of a hostname") do |n|
0
     options[:master_name] = "master@#{n}"
0
@@ -34,15 +34,15 @@ OptionParser.new do |opts|
0
     options[:name] = n
0
   end
0
   
0
- opts.on("-f ID2FILE", "--id2file FILENAME", "ID2 spec file to use to serve nodes") do |n|
0
- options[:id2file] = n
0
+ opts.on("-f FUZEDFILE", "--fuzedfile FILENAME", "FUZED spec file to use to serve nodes") do |n|
0
+ options[:fuzedfile] = n
0
   end
0
   
0
   opts.on("-m NAME", "--master NAME", "Master node name") do |n|
0
     options[:master_name] = n
0
   end
0
   
0
- opts.on("-s", "--spec SPECSTRING", "||-separated list of arguments to apply to your ID2 node") do |n|
0
+ opts.on("-s", "--spec SPECSTRING", "||-separated list of arguments to apply to your FUZED node") do |n|
0
     options[:spec] = n
0
   end
0
   
0
@@ -90,7 +90,7 @@ master = options[:master_name] || DEFAULT_MASTER_NODE
0
 nodename = options[:name] || DEFAULT_NODE_NAME
0
 
0
 if master !~ /@/
0
- abort "Please specify fully qualified master node name e.g. -m master@id2.tools.powerset.com"
0
+ abort "Please specify fully qualified master node name e.g. -m master@fuzed.tools.powerset.com"
0
 end
0
 
0
 spec = %{[} + create_spec_list(options).map {|x| %{"#{x}"}}.join(",") + %{]}
0
@@ -119,11 +119,11 @@ cmd = %Q{erl -boot start_sasl \
0
              #{code_paths}
0
              -name '#{nodename}' \
0
              -setcookie #{cookie_hash(master)} \
0
- -id2_node master "'#{master}'" \
0
- -id2_node spec '#{spec}' \
0
- -id2_node num_nodes #{num_nodes} \
0
+ -fuzed_node master "'#{master}'" \
0
+ -fuzed_node spec '#{spec}' \
0
+ -fuzed_node num_nodes #{num_nodes} \
0
              #{inet} \
0
- -config '#{ID2_ROOT}/conf/id2_base' \
0
- -run id2_node start}.squeeze(' ')
0
+ -config '#{FUZED_ROOT}/conf/fuzed_base' \
0
+ -run fuzed_node start}.squeeze(' ')
0
 puts cmd
0
 exec(cmd)
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 options = {}
0
 OptionParser.new do |opts|
0
- opts.banner = "Usage: id2 leave -n NAME"
0
+ opts.banner = "Usage: fuzed leave -n NAME"
0
   
0
   opts.on("-n NAME", "--name NAME", "Node name (hostname will automatically be appended)") do |n|
0
     options[:name] = n
...
1
2
3
 
4
5
6
...
14
15
16
17
 
18
19
20
...
1
2
 
3
4
5
6
...
14
15
16
 
17
18
19
20
0
@@ -1,6 +1,6 @@
0
 options = {}
0
 OptionParser.new do |opts|
0
- opts.banner = "Usage: id2 local [options]"
0
+ opts.banner = "Usage: fuzed local [options]"
0
   
0
   opts.on("-o NUMNODES", "--num_nodes NUMNODES", "Number of nodes to run") do |n|
0
     options[:num_nodes] = n
0
@@ -14,7 +14,7 @@ end.parse!
0
 command = ARGV[0]
0
 
0
 num_nodes = options[:num_nodes]
0
-tagarg = options[:tags] ? %{ -id2_node tags '"#{options[:tags]}"' } : ""
0
+tagarg = options[:tags] ? %{ -fuzed_node tags '"#{options[:tags]}"' } : ""
0
 cmd = %Q{erl -boot start_sasl \
0
              +Bc \
0
              +K true \
...
1
 
2
3
 
4
5
6
 
7
8
9
...
 
1
2
 
3
4
5
 
6
7
8
9
0
@@ -1,9 +1,9 @@
0
-require 'id2_auto_config'
0
+require 'fuzed_auto_config'
0
 
0
-environment = ID2AutoConfig.new
0
+environment = FUZEDAutoConfig.new
0
 options = {:master => :default}
0
 OptionParser.new do |opts|
0
- opts.banner = "Usage: id2 publish [-m master]"
0
+ opts.banner = "Usage: fuzed publish [-m master]"
0
   
0
   opts.on("-m", "--master TARGETNODE", "Master node for cookie generation. Defaults to your target.") do |arg|
0
     options[:master] = arg
...
1
2
3
 
 
4
...
 
 
1
2
3
4
0
@@ -1,2 +1,2 @@
0
-`id2 local_halt`
0
-`id2 boot`
0
\ No newline at end of file
0
+`fuzed local_halt`
0
+`fuzed boot`
0
\ No newline at end of file
...
1
2
3
 
4
5
6
...
21
22
23
24
 
25
26
27
...
31
32
33
34
 
35
36
37
 
38
39
...
1
2
 
3
4
5
6
...
21
22
23
 
24
25
26
27
...
31
32
33
 
34
35
36
 
37
38
39
0
@@ -1,6 +1,6 @@
0
 options = {}
0
 OptionParser.new do |opts|
0
- opts.banner = "Usage: id2 start [options]"
0
+ opts.banner = "Usage: fuzed start [options]"
0
   
0
   opts.on("-n NAME", "--name NAME", "Node name") do |n|
0
     options[:name] = n
0
@@ -21,7 +21,7 @@ detached = options[:detached] ? '-detached' : ''
0
 nodename = options[:name] || DEFAULT_MASTER_NODE
0
 
0
 if nodename !~ /@/
0
- abort "Please specify fully qualified node name e.g. -n master@id2.tools.powerset.com"
0
+ abort "Please specify fully qualified node name e.g. -n master@fuzed.tools.powerset.com"
0
 end
0
 
0
 cmd = %Q{erl -boot start_sasl \
0
@@ -31,9 +31,9 @@ cmd = %Q{erl -boot start_sasl \
0
              -smp enable \
0
              #{code_paths}
0
              -name '#{nodename}' \
0
- -config '#{ID2_ROOT}/conf/id2_base' \
0
+ -config '#{FUZED_ROOT}/conf/fuzed_base' \
0
              -setcookie #{cookie_hash(nodename)} \
0
              -kernel start_boot_server true \
0
- -run id2 start}.squeeze(' ')
0
+ -run fuzed start}.squeeze(' ')
0
 puts cmd
0
 exec(cmd)