Browse Source

[FC016] LWRP plain_file does not declare a default action

Juanje Ojeda 12 years ago
parent
commit
a0772ed973
1 changed files with 5 additions and 0 deletions
  1. 5 0
      resources/plain_file.rb

+ 5 - 0
resources/plain_file.rb

@@ -7,3 +7,8 @@ attribute :before, :kind_of => String
 attribute :after, :kind_of => String
 attribute :new_line, :kind_of => String
 attribute :pattern, :kind_of => String
+
+def initialize(*args)
+  super
+  @action = :add
+end