32 Commits

Author SHA1 Message Date
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
52dcfcedd3 Refactor specs 2014-09-27 12:20:24 +00:00
Thibault Jouan
8375890c1b Simplify Remote::Environment 2014-07-01 20:02:35 +00:00
Thibault Jouan
94f6bbb4aa Accept mode as argument in `mkdir' action 2014-04-25 00:33:27 +00:00
Thibault Jouan
5cb6296057 Accept mode as argument in `file_write' action 2014-04-25 00:33:24 +00:00
Thibault Jouan
b9976464a4 Remove Net::SSH story helpers usage in FS specs 2014-03-05 06:47:55 +00:00
Thibault Jouan
64a6ed678a Refactor Remote::FS specs 2014-03-05 00:10:07 +00:00
Thibault Jouan
f45d0b5a20 Modify Remote::FS interface:
* Accept SFTP session in FS constructor;
* Modify Remote to build the session required by FS;
* Change TestEnvHelpers#build_remote in order to provided a test double
  as the remote FS.
2014-03-05 00:07:59 +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
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
7f5d1a4085 Implement `mkdir' task action 2014-01-21 15:50:07 +00:00
Thibault Jouan
9d7af04d28 Implement Remote::FS#dir? 2014-01-21 15:01:27 +00:00
Thibault Jouan
b6ec8ed468 Implement Remote::Environment#[] 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
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
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
892a9862fc Implement `file_write' action 2013-12-20 06:26:21 +00:00
Thibault Jouan
188ca2e08d Fix coding standards in Remote::FS specs 2013-12-20 00:11:05 +00:00
Thibault Jouan
921fc8d3f9 Refactor Remote::Environment spec 2013-12-19 22:49:20 +00:00
Thibault Jouan
ef0307fbb5 Improve small details in specs:
* Fix coding standards;
* Simplify some expectations (eq instead of be matcher);
* Expect identity on block instead of calling;
* Change some before call as oneliners;
* Avoid shadowing variable names;
* Improve wording where needed.
2013-12-19 22:46:56 +00:00
Thibault Jouan
868c502531 Remove multibyte char from Remote::FS spec 2013-09-26 01:00:06 +00:00
Thibault Jouan
3492382968 Implement Remote::FS#has_file? 2013-09-26 00:28:40 +00:00
Thibault Jouan
99710b0df9 Implement Remote::FS#sftp 2013-09-26 00:28:40 +00:00
Thibault Jouan
d240df0281 Add Remote::FS class 2013-09-26 00:28:40 +00:00
Thibault Jouan
513ba4eedb Implement basic Remote::Environment class:
Represent a registry for remote environment variables, will follow an
API similar to Hash except the constructor. Currently only #has_key? is
implemented.
2013-08-20 02:13:54 +00:00