216 Commits

Author SHA1 Message Date
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
Thibault Jouan
f27ab6f074 Add Condition::DSL#{block,env} attribute readers 2014-01-19 16:50:42 +00:00
Thibault Jouan
db6f22ac97 Change Condition::DSL#tests as read-only attribute 2014-01-19 16:39:26 +00:00
Thibault Jouan
2e151fe321 Change Action attributes as read-only:
* #env
* #arguments
2014-01-19 16:37:51 +00:00
Thibault Jouan
5d81f0bc07 Add Condition#{tests,return_value} attributes reader 2014-01-19 00:07:21 +00:00
Thibault Jouan
a031cb2b51 Use more explicit example in CLI spec 2014-01-19 00:05:01 +00:00
Thibault Jouan
913cba6c23 Add some new delegators in Test class:
* #remote (delegates to env.remote)
* #fs (delegates to env.remote.fs)
2014-01-18 22:53:54 +00:00
Thibault Jouan
22613059f1 Change Env#output as read-only attribute 2014-01-09 01:22:43 +00:00
Thibault Jouan
b67a32d27e Change CLI#recipe as read-only attribute 2014-01-09 01:16:13 +00:00
Thibault Jouan
a7dde5afce Bump version to 0.1.10 2014-01-09 01:09:17 +00:00
Thibault Jouan
4c0a7f0fc7 Rename Interpreter class as Worker 2014-01-09 01:08:49 +00:00
Thibault Jouan
cdc3128727 Implement Action#remote (delegates to remote.fs) 2014-01-09 00:51:16 +00:00
Thibault Jouan
29c26ab961 Implement Action#remote (delegates to env.remote) 2014-01-09 00:45:26 +00:00
Thibault Jouan
e567c61e4e Implement Action#output (delegates to env.output) 2014-01-09 00:43:01 +00:00
Thibault Jouan
103b9d1230 Rename Remote::FS#{has_,}file? 2014-01-08 22:30:52 +00:00
Thibault Jouan
19b091a15c Rename Remote::Environment#{has_,}key? 2014-01-08 22:28:23 +00:00
Thibault Jouan
56ea377e31 Fix coding standards (empty blocks) 2014-01-08 22:16:51 +00:00
Thibault Jouan
9971283841 Improve Recipe::DSL#initialize spec 2014-01-08 22:14:16 +00:00
Thibault Jouan
352fcd37f8 Modify recipe DSL API to take env on initialization 2014-01-08 22:13:14 +00:00
Thibault Jouan
1d6ae126ed Modify task DSL API to take env on initialization 2014-01-08 22:11:30 +00:00
Thibault Jouan
356d778746 Improve guard-rspec config (fail-fast and restart all) 2014-01-08 21:51:07 +00:00
Thibault Jouan
edca69ffad Refactor Recipe specs:
* Use more classic specs for .evaluate_from_file;
* Fix coding standards.
2014-01-08 02:28:24 +00:00
Thibault Jouan
b1010e44c5 Bump version to 0.1.9 2014-01-08 02:19:03 +00:00
Thibault Jouan
7dfbc3905b Rewrite CLI#run:
* Rename #run! to #run;
* Add #load_recipe method;
* Remove most builder/accessor/memoizable methods.
2014-01-08 02:10:18 +00:00
Thibault Jouan
4d34f66ec5 Add EX_USAGE constant in CLI class 2014-01-07 21:23:15 +00:00
Thibault Jouan
512c380517 Bump version to 0.1.9 2014-01-07 21:21:42 +00:00
Thibault Jouan
f7efd9c42f Refactor CLI usage into CLI.run!:
* Add Producer::Core::CLI::ArgumentError class;
* Raise ArgumentError in CLI.new when recipe is missing;
* Remove #check_arguments! and #print_usage_and_exit, move code into
  .run! method.
2014-01-07 21:06:14 +00:00
Thibault Jouan
dc9e7f1412 Improve CLI API related to standard output 2014-01-07 18:47:56 +00:00
Thibault Jouan
d670d5dbdd Replace env.output interface with an IO like object 2013-12-23 23:31:15 +00:00
Thibault Jouan
e8b0900721 Improve `echo' action cucumber feature wording 2013-12-23 23:31:15 +00:00
Thibault Jouan
9b975836dc Fix gemspec:
* Remove $LOAD_PATH modification;
* Dup VERSION string;
* Add a real summary.
2013-12-23 00:54:48 +00:00
Thibault Jouan
012c776880 Simplify Remote::Environment with factory method:
* Implement .new_from_string factory class method;
* Rename private method #parse_from_string as class method
  .string_to_hash;
* Remove argument kind detection logic in constructor.
2013-12-21 03:08:01 +00:00
Thibault Jouan
4885483d75 Bump version to 0.1.7 2013-12-20 23:35:02 +00:00
Thibault Jouan
e8be44d1f0 Implement `macro' recipe keyword 2013-12-20 23:19:16 +00:00
Thibault Jouan
43a781dc78 Remove Task::DSL.evaluate method 2013-12-20 11:43:18 +00:00