Fail when `file_replace_content' misses arguments

This commit is contained in:
Thibault Jouan
2014-10-09 20:06:15 +00:00
parent 58f3a7223e
commit fdfd5df26f
2 changed files with 11 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ module Producer
module Actions
class FileReplaceContent < Action
def setup
check_arguments_size! 3
@path, @pattern, @replacement = arguments
end