Commit Graph

23 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 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 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 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 bdd09b6ea9 Regroup all require calls in lib source files 2014-02-08 01:24:34 +00:00
Thibault Jouan 05331d334d Implement Remote::FS#file_read 2014-01-23 16:37:02 +00:00
Thibault Jouan 65ceb9e741 Refactor forwardable require calls 2014-01-22 21:33:05 +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 705774f8ef Add Remote::Environment#variables attribute reader 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 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