285 Commits

Author SHA1 Message Date
Thibault Jouan
d481398980 Fix typo in features and specs (exists -> exist) 2015-04-04 23:14:05 +00:00
Thibault Jouan
dbe7fea204 Fix backtrace filtering for producer own code
Using /producer-\w+ as pattern is incorrect, we have no guarantee that
the canonical repository or gem name will be included in the install
path. Just use /producer pattern to match lib files or executables.
2015-04-04 20:15:22 +00:00
Thibault Jouan
433f830c54 Implement recipe arguments
CLI will stop arguments processing after the special `--' argument,
the rest will be saved in the env and accessible through a new task
keyword: `recipe_argv'.
2015-04-04 05:25:01 +00:00
Thibault Jouan
1ccd95b80f Fix error formatting in debug mode
Backtrace filtering was only disabled for exception cause, this change
ensure no backtrace filtering at all in debug mode.

* Prevent main exception filtering when debug mode is enabled;
* Test when exception cause must be displayed;
* Test how exception cause must be displayed.
2015-04-03 23:18:28 +00:00
Thibault Jouan
b93e5717ce Filter ruby lib directory from error backtrace 2015-04-03 22:36:23 +00:00
Thibault Jouan
0da47a0acb Fix backtrace filtering for producer 2015-04-03 22:35:44 +00:00
Thibault Jouan
b1879ea9f9 Test net-ssh error filtering 2015-04-03 20:27:28 +00:00
Thibault Jouan
7e3d753d5c Ensure env cleanup always happen in CLI#run 2014-11-18 19:21:42 +00:00
Thibault Jouan
3b413a242f Implement `set?' task keyword:
When called from a task, will return true when given key exists and
false when key does not exist.
2014-11-18 16:48:11 +00:00
Thibault Jouan
e22d0039e1 Implement CLI debug option 2014-10-12 23:45:01 +00:00
Thibault Jouan
25d03d4322 Improve CLI error reporting 2014-10-12 18:11:37 +00:00
Thibault Jouan
f6237bfc0c Implement `yaml_eq' condition keyword 2014-10-11 13:46:18 +00:00
Thibault Jouan
0ba12bfb90 Implement `yaml_write' action 2014-10-11 00:47:16 +00:00
Thibault Jouan
9780cdf220 Support YAML templates 2014-10-10 23:58:20 +00:00
Thibault Jouan
82879b56b4 Extract Task#template code in Template class 2014-10-10 16:36:06 +00:00
Thibault Jouan
6276720137 Fix wording in specs 2014-10-09 20:15:40 +00:00
Thibault Jouan
3cc52bb1a8 Fail when `sh' misses arguments 2014-10-09 20:14:44 +00:00
Thibault Jouan
3f82b923b7 Fail when `mkdir' misses arguments 2014-10-09 20:12:44 +00:00
Thibault Jouan
fdfd5df26f Fail when `file_replace_content' misses arguments 2014-10-09 20:06:15 +00:00
Thibault Jouan
58f3a7223e Declare arguments explicitly in actions specs 2014-10-09 20:05:31 +00:00
Thibault Jouan
5549ebc676 Fail when `file_append' misses some arguments 2014-10-09 19:47:52 +00:00
Thibault Jouan
61c262a9f1 Fail when `file_write' misses some arguments 2014-10-09 19:11:16 +00:00
Thibault Jouan
ef7259fab2 Move #to_s spec from shared actions to Action 2014-10-09 19:10:51 +00:00
Thibault Jouan
b6fb9bd811 Fix incorrect method names in actions specs 2014-10-09 14:40:58 +00:00
Thibault Jouan
3c4bcc1a4b Refactor actions with Action#setup 2014-10-09 01:06:42 +00:00
Thibault Jouan
336b43aaa7 Implement Action post-initialize hook 2014-10-09 00:20:52 +00:00
Thibault Jouan
e7a46cecd1 Remove shared action specs on attr_reader 2014-10-08 23:43:08 +00:00
Thibault Jouan
c4006416e4 Support `file_write' status attributes 2014-10-08 22:36:32 +00:00
Thibault Jouan
a84b34b7ca Support `mkdir' status attributes 2014-10-08 22:36:27 +00:00
Thibault Jouan
9bc5c2aeec Implement `composed_macro' recipe keyword 2014-10-02 03:20:12 +00:00
Thibault Jouan
52dcfcedd3 Refactor specs 2014-09-27 12:20:24 +00:00
Thibault Jouan
2543fdeb00 Implement `file_match' condition keyword 2014-09-27 12:14:16 +00:00
Thibault Jouan
7a7c8379ff Improve CLI usage:
* Rewrite arguments parsing with OptionParser;
* Allow processing of multiple recipes.
2014-09-26 19:06:10 +00:00
Thibault Jouan
2d4e04b2e5 Fail when accessing registry with invalid key 2014-09-26 00:24:19 +00:00
Thibault Jouan
25935f8302 Improve mkdir so that permissions will be forced:
SFTP will honor umask on server side, and new directories won't get
expected permissions. We need to explicitly set permissions metadata for
new entries.
2014-09-25 21:35:06 +00:00
Thibault Jouan
bd66ec25e4 Allow `mkdir' action to work recursively 2014-09-25 21:28:12 +00:00
Thibault Jouan
1e3cd696c8 Use a verifying double for remote FS in specs 2014-09-25 20:55:13 +00:00
Thibault Jouan
429b9f9ad2 Refactor mkdir action 2014-09-25 20:35:30 +00:00
Thibault Jouan
b11d0b6950 Allow `target' recipe keyword to return target 2014-09-25 14:57:27 +00:00
Thibault Jouan
42e29cc1fe Implement `target' condition keyword 2014-09-25 01:34:44 +00:00
Thibault Jouan
a7b2c4abea Implement `target' recipe keyword 2014-09-25 01:24:25 +00:00
Thibault Jouan
3dc414f188 Declare macro in tasks 2014-09-25 00:27:46 +00:00
Thibault Jouan
77582ef843 Allow access to registry from conditions 2014-09-25 00:01:03 +00:00
Thibault Jouan
638f8320bc Implement nested tasks 2014-09-24 22:26:29 +00:00
Thibault Jouan
3b28045340 Merge Condition::DSL into Condition 2014-09-22 19:43:43 +00:00
Thibault Jouan
2c335b2437 Merge Task::DSL into Task 2014-09-22 19:43:36 +00:00
Thibault Jouan
166dae681c Merge Recipe::DSL into Recipe 2014-09-22 19:43:30 +00:00
Thibault Jouan
52e183b277 Refactor CLI 2014-09-22 13:00:50 +00:00
Thibault Jouan
ea6875e9ee Refactor CLI 2014-09-22 12:30:50 +00:00
Thibault Jouan
4a83e8c71a Implement `file_eq' condition keyword 2014-09-22 08:25:50 +00:00