diff options
Diffstat (limited to 'lib/dslkeywords/touch.rb')
| -rw-r--r-- | lib/dslkeywords/touch.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/dslkeywords/touch.rb b/lib/dslkeywords/touch.rb index 27e691b..13d63f7 100644 --- a/lib/dslkeywords/touch.rb +++ b/lib/dslkeywords/touch.rb @@ -26,13 +26,7 @@ module RCM class DSL def touch(file_path = nil, &block) - return :touch if file_path.nil? - return unless @conds_met - - t = Touch.new(file_path) - t.instance_eval(&block) if block - self << t - t + register_keyword(Touch, :touch, file_path) { |t| t.instance_eval(&block) if block } end end end |
