24 Commits

Author SHA1 Message Date
Thibault Jouan
429b9f9ad2 Refactor mkdir action 2014-09-25 20:35:30 +00:00
Thibault Jouan
db91eb06cd Forward standard error stream from remote execution 2014-07-24 17:38:13 +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
3610427c74 Improve `file_append' when file doesn't exist 2014-04-23 20:39:19 +00:00
Thibault Jouan
bf25b05adb Remote extra record separator from `sh' task action 2014-03-05 06:45:56 +00:00
Thibault Jouan
387f37f3f5 Implement `file_append' task action 2014-03-05 02:41:28 +00:00
Thibault Jouan
d22b023ff4 Implement `file_replace_content' task action 2014-03-05 02:02:52 +00:00
Thibault Jouan
fcba1a5c0b Implement rspec TestEnvHelpers:
Allow use of our test environment, with a mocked remote and convenient
methods to write more concise expectations.

  #env, builds and returns a memoized test environment (with mocked
  remote)

  #output, returns env output as a string

  #remote_fs, returns env remote fs

  #expect_execution, setup a remote command execution expectation
2014-03-04 23:24:05 +00:00
Thibault Jouan
4624a81100 Refactor actions specs with shared examples 2014-02-10 16:49:17 +00:00
Thibault Jouan
48a9da9365 Fix coding standards (module nesting) in specs 2014-02-08 17:59:33 +00:00
Thibault Jouan
7a75db3583 Remove extra empty line in specs 2014-01-23 16:49:32 +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
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
d670d5dbdd Replace env.output interface with an IO like object 2013-12-23 23:31:15 +00:00
Thibault Jouan
892a9862fc Implement `file_write' action 2013-12-20 06:26:21 +00:00
Thibault Jouan
fe1eb5bc1a Simplify actions specs 2013-12-19 20:37:49 +00:00
Thibault Jouan
856e78245f Remove extra empty line in echo action spec 2013-08-22 00:21:43 +00:00
Thibault Jouan
a675c9c910 Implement `echo' task action 2013-08-14 23:43:36 +00:00
Thibault Jouan
ec44d01c36 Fix coding standards in shell command action spec 2013-08-10 14:46:31 +00:00
Thibault Jouan
f10914c7d7 Implement basic `sh' task action feature:
* Executes a command on the remote host;
* Forwards remote standard output.
2013-08-07 16:16:40 +00:00