Thibault Jouan
4624a81100
Refactor actions specs with shared examples
2014-02-10 16:49:17 +00:00
Thibault Jouan
23d5d8a1df
Refactor spec/support/**/*.rb require calls
2014-02-10 16:46:14 +00:00
Thibault Jouan
850bad2ba8
Fix typo in Remote::FS spec
2014-02-10 15:28:51 +00:00
Thibault Jouan
48a9da9365
Fix coding standards (module nesting) in specs
2014-02-08 17:59:33 +00:00
Thibault Jouan
115561ee88
Add explicit versions for runtime dependencies
2014-02-08 17:36:51 +00:00
Thibault Jouan
bdd09b6ea9
Regroup all require calls in lib source files
2014-02-08 01:24:34 +00:00
Thibault Jouan
130d84aa6c
Simplify Action#output spec
2014-01-23 18:22:21 +00:00
Thibault Jouan
7a75db3583
Remove extra empty line in specs
2014-01-23 16:49:32 +00:00
Thibault Jouan
a0482d175c
Implement `file_contains' condition keyword
2014-01-23 16:37:19 +00:00
Thibault Jouan
05331d334d
Implement Remote::FS#file_read
2014-01-23 16:37:02 +00:00
Thibault Jouan
39b3796aa0
Fix Remote::FS#file_write spec:
...
* Fix file double name;
* Remove uneeded .as_null_object calls on doubles.
2014-01-23 16:36:04 +00:00
Thibault Jouan
65ceb9e741
Refactor forwardable require calls
2014-01-22 21:33:05 +00:00
Thibault Jouan
456ed17724
Implement `get' task keyword, fetch from registry
2014-01-21 17:31:32 +00:00
Thibault Jouan
f92ad8128d
Implement set' and
get' recipe keywords:
...
`set' registers a value at given index in env registry, `get'
retrieves a value at given index.
2014-01-21 17:11:17 +00:00
Thibault Jouan
154ee8d534
Implement a key/value registry at env level
2014-01-21 17:10:42 +00:00
Thibault Jouan
d845af60a3
Bump version to 0.1.12
2014-01-21 15:51:17 +00:00
Thibault Jouan
7f5d1a4085
Implement `mkdir' task action
2014-01-21 15:50:07 +00:00
Thibault Jouan
f147ce7d65
Fix some indentation in FileWriter spec
2014-01-21 15:49:36 +00:00
Thibault Jouan
0b4df20f55
Implement `has_dir' condition keyword
2014-01-21 15:02:07 +00:00
Thibault Jouan
9d7af04d28
Implement Remote::FS#dir?
2014-01-21 15:01:27 +00:00
Thibault Jouan
dba8a7aeee
Remove feature exposing env object in recipe DSL
2014-01-21 01:22:00 +00:00
Thibault Jouan
6db71caea9
Bump version to 0.1.11
2014-01-21 01:20:15 +00:00
Thibault Jouan
0d0ed541c8
Allow `ask' action to customize choices prompt
2014-01-21 01:19:17 +00:00
Thibault Jouan
7e062e06a1
Implement `ask' recipe keyword
2014-01-21 00:52:44 +00:00
Thibault Jouan
70109615c8
Implement Action#input, delegating to env input
2014-01-20 22:27:55 +00:00
Thibault Jouan
a871bb4009
Implement input handling in Env
2014-01-20 22:27:55 +00:00
Thibault Jouan
d347b8d6f5
Remove last instance_eval usage in spec
2014-01-20 02:05:30 +00:00
Thibault Jouan
82f8eac319
Improve Test spec:
...
* Use attributes readers instead of instance_eval;
* Refactor.
2014-01-20 02:00:24 +00:00
Thibault Jouan
780bb9041d
Remove accessor tests in Task spec
2014-01-20 01:52:50 +00:00
Thibault Jouan
658a5903fa
Improve Task spec, remove instance_eval usage
2014-01-20 01:51:10 +00:00
Thibault Jouan
656c456706
Change Task#evaluate spec, more classic test style
2014-01-20 01:48:31 +00:00
Thibault Jouan
dae7d5d79e
Fix Task::DSL attributes:
...
* Remove condition attribute accessor, implemented as a method;
* Make all other read-only.
2014-01-20 01:47:20 +00:00
Thibault Jouan
b0b6b0f39a
Refactor and clean up Task::DSL spec
2014-01-20 01:47:20 +00:00
Thibault Jouan
6b46fac76f
Change an expectation in Condition::DSL specs
2014-01-20 01:47:20 +00:00
Thibault Jouan
5455955fd2
Add Task::DSL#block attribute reader
2014-01-20 01:47:20 +00:00
Thibault Jouan
db1c452f96
Remove Task::DSL#actions uneeded spec
2014-01-20 01:47:20 +00:00
Thibault Jouan
f44fd56158
Simplify Remote#environment spec
2014-01-20 01:47:20 +00:00
Thibault Jouan
b6ec8ed468
Implement Remote::Environment#[]
2014-01-20 01:47:19 +00:00
Thibault Jouan
4603ce777f
Make Remote#hostname attribute read-only
2014-01-20 01:47:19 +00:00
Thibault Jouan
b1e182cc93
Add Remote::FS#remote attribute reader
2014-01-20 01:47:19 +00:00
Thibault Jouan
5662bb723e
Simplify Remote::Environment.new_from_string spec
2014-01-20 01:47:19 +00:00
Thibault Jouan
705774f8ef
Add Remote::Environment#variables attribute reader
2014-01-20 01:47:19 +00:00
Thibault Jouan
22dd5fbdf9
Refactor Remote::Environment spec with described_class
2014-01-20 01:47:19 +00:00
Thibault Jouan
161c784cbe
Make Recipe::DSL methods public
2014-01-20 01:47:19 +00:00
Thibault Jouan
42a82c9c80
Add Recipe::DSL#{code,block} attribute readers
2014-01-20 01:47:19 +00:00
Thibault Jouan
2d9c84d04e
Refactor Recipe::DSL spec with described_class
2014-01-20 01:47:19 +00:00
Thibault Jouan
3360356e49
Simplify Env spec:
...
* Remove #ouput examples;
* Use described_class where useful.
2014-01-20 01:47:19 +00:00
Thibault Jouan
dd5866c04e
Refactor Condition spec:
...
* Use more "classic" testing style for .evaluate;
* Use described_class where useful.
2014-01-20 01:47:08 +00:00
Thibault Jouan
88d5ab68b7
Remove TestsHelpers module (was used in specs)
2014-01-19 17:39:14 +00:00
Thibault Jouan
29b3efa580
Improve Condition::DSL spec:
...
* Use a real Test object;
* Use some more "classic" test style;
* Move example about defined test keywords calls in .define_test spec;
* Add missing example for #evaluate.
2014-01-19 17:11:27 +00:00