Thibault Jouan
9285a951c7
Add missing spec for CLI#initialize
2013-08-06 20:02:23 +00:00
Thibault Jouan
779eb72c32
Improve wording in CLI#arguments spec
2013-08-06 19:41:48 +00:00
Thibault Jouan
bd1bdba9cf
Fix CLI#evaluate_recipe_file spec:
...
The spec wasn't covering the case when recipe evaluation raises an
unexpected error.
2013-08-06 19:38:33 +00:00
Thibault Jouan
eaccf55581
Improve CLI spec:
...
Test #arguments accessor instead of testing the constructor.
2013-08-06 19:17:22 +00:00
Thibault Jouan
c3737e738e
Refactor trap_exit spec helper usages
2013-08-01 22:51:41 +00:00
Thibault Jouan
c4fc9828db
Improve error reporting during recipe evaluation
...
* Report invalid action usages from tasks;
* Implement backtrace cleaning in CLI;
* Extract error class declarations in a new errors file;
* Replace raise with fail keyword in task DSL class.
2013-08-01 20:31:39 +00:00
Thibault Jouan
a45a340b64
Improve some context descriptions in specs
2013-08-01 00:01:20 +00:00
Thibault Jouan
0aa043b61a
Remove host argument:
...
Currently the idea is to later implement a -h (or -t) option to the
command, and/or a `target' recipe keyword. Another option might be to
use the target/host key when the key/value registry will be implemented
and made available to the recipe and task DSLs.
2013-08-01 00:01:20 +00:00
Thibault Jouan
2acb57254f
Fix a few coding standards issues:
...
* Remove extra empty lines before private keyword usages.
specs:
* Fix one long line;
* use proc keyword instead of Proc.new.
2013-08-01 00:01:20 +00:00
Thibault Jouan
e12dd5c0e7
Implement recipe error reporting feature
2013-08-01 00:01:15 +00:00
Thibault Jouan
a1e92893ad
Refactor CLI#run! method
2013-07-30 15:19:34 +00:00
Thibault Jouan
d199ba56fd
Add Env class
2013-07-30 14:47:56 +00:00
Thibault Jouan
ead09c2118
Test exact exit status in CLI spec
2013-07-28 23:25:58 +00:00
Thibault Jouan
0921be9ab0
Implement recipe evaluation feature
2013-07-27 18:20:45 +00:00
Thibault Jouan
a6cfd4d7cb
Implement CLI usage feature
2013-07-27 13:04:30 +00:00