Commit graph

160 commits

Author SHA1 Message Date
yannayl
da7d413fb0 Add 'shell' sub-command to shell-completion 2015-02-13 09:05:33 +00:00
Roberto Aloi
0d5416218b Exit with proper status code if 'eval' fails 2015-01-23 08:31:58 +01:00
Сергей Прохоров
0a1961fb0d Fixed #133. Release upgrade handle long and short names properly.
Implemented, by moving upgrade functionality from install_upgrade.escript
to nodetool, which already supports both short and long names.
Make install_upgrade.escript as wrapper for nodetool for backward compatibility.
2015-01-20 10:18:10 +03:00
Tuncer Ayaz
631d74c00f Implement eflame -p/--profile support
When -p/--profile is enabled, you can select the profiler as follows:

generate flame graph (eflame.svg) from trace (eflame.trace)
$ rebar -p compile profiler=eflame

generate fprof.analysis
$ rebar -p compile

generate fprof.analysis
$ rebar -p compile profiler=fprof
2014-10-29 19:24:58 +01:00
Roberto Aloi
93ccbf936c Implement eval command via nodetool 2014-10-21 14:22:37 +02:00
Joe DeVivo
0a54123ff2 added fish support for './rebar' 2014-08-25 11:20:09 -07:00
Joe DeVivo
519e1c8d16 fish shell completions for rebar 2014-08-25 09:58:52 -07:00
Antonio Murdaca
c9a301d04c Add gen_event template 2014-06-15 14:18:00 +02:00
Habibutsu
12ca1fb126 Error 'Command not found' when sname is used
When a node is configured with -sname the REMSH_NAME_PART argument should be defined with using command 'hostname' but error occurs due extra space
2014-05-27 11:22:24 +03:00
Jared Morrow
755c6023d1 Merge pull request #52 from shino/slim-release-support
Slim release support
2014-05-21 15:36:57 -06:00
Tuncer Ayaz
77a0eb6fe4 Fix #56 (always-on recursion)
Always-on recursive application of all rebar commands causes too many
issues. Recursive application is required for:
1. dealing with dependencies: get-deps, update-deps, and compile of deps
   right after get-deps or update-deps
2. projects with a riak-like apps/ project structure and dev process

The vast majority of projects are not structured like riak. Therefore,
moving forward it's best to (by default) restrict recursive behavior to
dealing with deps. This commit does that and also adds command line and
rebar.config options for controlling or configuring recursion. Also, we
introduce two meta commands: prepare-deps (equivalent to rebar -r
get-deps compile) and refresh-deps (equivalent to rebar -r update-deps
compile). riak-like projects can extend the list of recursive commands
(to include 'eunit' and 'compile') by adding
{recursive_cmds, [eunit, compile]} to rebar.config.
2014-03-11 21:11:36 +00:00
Shunichi Shinohara
81ed1611af Add TODO comment to install_upgrade script template 2014-03-09 15:55:52 +09:00
Shunichi Shinohara
e4300bf88f Change nodetool path to under releases/<RELEASE_VERSION>/ 2014-03-09 15:55:52 +09:00
Shunichi Shinohara
12af16eb70 Add slim release support for runner script 2014-03-09 15:54:32 +09:00
Andrew Thompson
17fe5d6f1c Merge pull request #115 from mdaguete/simplenode.runner-remsh-fixes
Incorrect REMSH args when sname is used.
2014-03-05 15:22:28 -05:00
Pierre Fenoll
70cdb37942 Add command to rebar:command_names/0 2013-12-19 23:05:49 +00:00
Pierre Fenoll
c83d037404 Add a library template 2013-12-19 22:01:25 +00:00
Tuncer Ayaz
6de94e8a16 Change default log level to 'warn' and introduce -q/--quiet 2013-12-06 19:05:45 +01:00
Manuel Durán Aguete
e1d218f99a Init RUNNER_SCRIPT var in simplenode.runner
RUNNER_SCRIPT variable is not initialized in simplenode.runner and it's
referenced when calling sudo.
2013-11-18 13:17:35 +01:00
Manuel Durán Aguete
cdfcc27087 Make REMSH node run in hidden mode
To avoid problems with REMSH node being visible from another nodes
starts it in hidden mode (erl -hidden).
2013-07-19 17:29:26 +02:00
Manuel Durán Aguete
5d4272baef Incorrect REMSH args when sname is used
When a node is configured with -sname in app.config or sys.config the
REMSH_NAME_ARG and REMSH_REMSH_ARG arguments are incorrect due the
assumption that the node name always contains '@'.

To fix the bug, the script tries to find '@' and then compose the
arguments acording to node name type. If in long name mode the
script can't compose a correct node name exits with warning.
2013-07-19 17:29:26 +02:00
Dave Smith
94cf19438c Merge pull request #54 from mattonrails/simpleapp_sup_template_typo
Remove leading empty line from a template
2013-06-14 05:51:13 -07:00
Dave Smith
ef0fd4089f Merge pull request #96 from olgeni/pwd-symlink-fix
Use "pwd -P" to get the current physical path.
2013-06-12 07:46:30 -07:00
olgeni
505458eecb Use "pwd -P" to get the current physical path.
It is a portable version of the realpath(1) utility that you can find on
Mac OS X and FreeBSD (see also The Open Group Base Specifications Issue
6, IEEE Std 1003.1).

Without the -P flag, pwd(1) might return different values when the
current path contains one or more symlinks, depending on how you got
into the current directory.

In simplenode.runner, this may cause PIPE_DIR to have different values
on each use, which will make it impossible to connect to the running
node unless you guess the correct path yourself.
2013-06-10 22:15:49 +02:00
syl20bnr
89c8f931a5 Add support for ping command on windows in the simple node runner 2013-05-20 15:40:03 -04:00
Tuncer Ayaz
a2f3207542 Do not compile nodetool escript
This removes the dependency on lib/compiler in an OTP release.
2013-04-12 20:52:26 +02:00
Tuncer Ayaz
d28c92ff11 simplenode.reltool.config: use default sys-level mod_cond setting
As discussed here
http://erlang.org/pipermail/erlang-questions/2012-December/071135.html
change the reltool spec to use the default sys-level mod_cond setting.
2013-04-06 18:37:47 +02:00
Dave Smith
c057c7771e Remove unnecessary bar 2013-03-02 07:51:26 -07:00
Jared Morrow
c4989f0939 Change simplenode template files to work on more platforms
When developing Riak, we have found bugs and other issues due
to the number of platforms we support.

Here is an overview of the changes:
  -  Fix command-line syntax for commands to work on *BSD / Sun
  -  Add chkconfig and getpid to nodetool
  -  Replace platform specific 'kill' commands with a nodetool
	getpid method
  -  Fix RUNNER_USER settings to work on *BSD
2013-01-17 14:41:21 -07:00
Matthew Conway
6bab3c86d2 Remove leading empty line from a template 2013-01-14 18:00:48 -08:00
Dave Smith
65ed9d9811 Merge pull request #34 from shkumagai/feature/zsh-completion-add-options
Add missing variables
2012-12-02 08:05:39 -08:00
Shoji KUMAGAI
f5a5843d77 Add missing variables
- add overlay_vars=, target_dir=, and tests= with short description
2012-12-03 00:04:07 +09:00
Tuncer Ayaz
dfbba0f4e7 bash-completion: add missing options and variables
- add missing short and long options
- add tests=, target_dir=, overlay_vars=
2012-12-01 15:31:01 +01:00
Shoji KUMAGAI
da5cbe3b0f zsh-completion: add 'dump_spec' back again 2012-12-01 01:30:48 +09:00
Tuncer Ayaz
1ce06c76fc bash-completion: add dump_spec=1 2012-11-30 16:09:41 +01:00
Dave Smith
f0a2c5e84f Merge pull request #19 from shkumagai/feature/zsh-completion-refine
Change zsh completion script
2012-11-30 06:35:35 -08:00
Tuncer Ayaz
ee97a65c14 bash-completion: add generate-appups 2012-11-26 13:39:36 +01:00
Shoji KUMAGAI
0bb1416479 Change zsh completion script
- Add 'escriptize' command
- Remove variable 'dump_spec'
2012-11-16 14:52:34 +09:00
Tuncer Ayaz
d97f94ae1e zsh completion: fix typos 2012-11-01 12:13:07 +01:00
Shoji KUMAGAI
468e1ec9a9 Add zsh completion script
For enable to shell-completion in zsh.
2012-11-01 10:47:13 +09:00
Tuncer Ayaz
147b1a0798 bash completion: remove duplicate cmd 2012-08-09 15:16:22 +02:00
Tuncer Ayaz
803f6e8ecd Replace test-compile with compile_only=true option 2012-08-09 14:04:53 +02:00
Matt Campbell
471b5714eb Quote paths in Windows runner script
This allows the node to run in paths which include special characters,
for example 'C:\Program Files (x86)\Product Name'
2012-07-31 00:08:01 +02:00
Tuncer Ayaz
e75a97ad33 Add 'qc' cmd and rename eunit-compile to test-compile 2012-07-23 16:22:06 +02:00
Tuncer Ayaz
902dcdf3ff Add 'eunit-compile' cmd (Suggested-by: Joe Norton) 2012-07-23 13:28:38 +02:00
Ulf Wiger
a8d11dc273 noderunner: add support for alt dir and boot file
This patch contains two additions to simplenode.runner:

1. Check if vm.args exists in CWD; if so, use it. This makes it
   easier to start multiple concurrent nodes on a single machine
   from one rebar-created release (starting each node from its
   own directory, with its own copy of vm.args and e.g.
   sys.config, log directory, database directory, etc.)

2. Add the targets start_boot <file> and console_boot <file>.
   This is used to select a different boot script. The 'setup'
   application (http://github.com/esl/setup) builds a special boot
   script for installation (all apps loaded but not started,
   making it possible to run install hooks with the full code path
   in place).
2012-07-14 00:26:09 +02:00
Tuncer Ayaz
f0de7faa11 Simplify reltool.config template 2012-06-19 01:05:45 +02:00
Tuncer Ayaz
2daf7cae27 Add escriptize to bash completion 2012-05-18 19:57:57 +02:00
Tuncer Ayaz
32ddef7158 Remove alt_url support in favor of new features 2012-05-13 19:30:38 +02:00
joewilliams
d726e598b5 Add support for using -remsh via runner script 2012-04-23 11:08:19 -07:00