This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Get | |
| { | |
| private readonly IDocumentSession session; | |
| private readonly ISecurityContext security; | |
| public Get(IDocumentSession session, ISecurityContext security) | |
| { | |
| this.session = session; | |
| this.security = security; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static IDocumentStore GetStore() | |
| { | |
| var environment = ConfigurationManager.AppSettings["Environment"]; | |
| if (environment == "Azure") | |
| { | |
| return new DocumentStore | |
| { | |
| ConnectionStringName = "RavenDB", | |
| ApiKey = ConfigurationManager.AppSettings["RavenApiKey"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| compile: | |
| ./rebar compile | |
| deps: | |
| ./rebar get-deps | |
| generate: | |
| ./rebar generate | |
| rel: deps compile generate riaknostic-rel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*- | |
| %% ex: ft=erlang ts=4 sw=4 et | |
| {sys, [ | |
| {lib_dirs, ["../deps", "../deps/riak_search/apps"]}, | |
| {rel, "riak", "1.3.0rc2", | |
| [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {overlay_vars, "vars.config"}. | |
| {overlay, [ | |
| {mkdir, "data/ring"}, | |
| {mkdir, "log"}, | |
| {copy, "files/erl", "{{erts_vsn}}/bin/erl"}, | |
| {template, "files/app.config", "etc/app.config"}, | |
| {template, "files/nodetool", "{{erts_vsn}}/bin/nodetool"}, | |
| {template, "files/riak", "bin/riak"}, | |
| {template, "files/riak-admin", "bin/riak-admin"}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CMD="$BINDIR/erlexec -boot $RUNNER_BASE_DIR/releases/$APP_VSN/$SCRIPT \ | |
| -embedded -config $RUNNER_ETC_DIR/app.config \ | |
| -pa $RUNNER_LIB_DIR/basho-patches \ | |
| -args_file $RUNNER_ETC_DIR/vm.args -- ${1+"$@"}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Setup command to control the node | |
| NODETOOL="$ERTS_PATH/escript $ERTS_PATH/nodetool $NAME_ARG $COOKIE_ARG" | |
| .... | |
| $NODETOOL rpc riak_kv_console status $@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ["rpc", Module, Function | RpcArgs] -> | |
| case rpc:call(TargetNode, list_to_atom(Module), list_to_atom(Function), | |
| [RpcArgs], 60000) of | |
| ok -> | |
| ok; | |
| {badrpc, Reason} -> | |
| io:format("RPC to ~p failed: ~p\n", [TargetNode, Reason]), | |
| halt(1); | |
| _ -> | |
| halt(1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {release,{"riak","1.3.0rc2"}, | |
| {erts,"5.9.1"}, | |
| [{kernel,"2.15.1"}, | |
| {lager,"1.2.1"}, | |
| {sasl,"2.2.1"}, | |
| {os_mon,"2.2.9"}, | |
| {runtime_tools,"1.8.8"}, | |
| {erlang_js,"1.2.1"}, | |
| {inets,"5.9"}, | |
| {mochiweb,"1.5.1"}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -module(riak_core_app). | |
| -behaviour(application). | |
| %% Application callbacks | |
| -export([start/2, prep_stop/1, stop/1]). | |
| %% =================================================================== | |
| %% Application callbacks | |
| %% =================================================================== |