Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Creates a backup model with an optional `cron` schedule.

### Attribute Parameters

* The name attribute - A symbol used as the trigger name.
* The name attribute - A string or symbol used as the trigger name.
* `description` - A description for the backup. Default is the same as the name.
* `definition` - A string (best formed as a heredoc) defining the backup. Will be interpoleted and turned into a model file. Required.
* `schedule` - A hash of times (minute, hour, day, month, weekday) that will be passed to a [`cron` resource](http://docs.opscode.com/chef/resources.html#cron).
Expand Down
2 changes: 1 addition & 1 deletion resources/model.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
actions :create, :delete
default_action :create

attribute :name, :kind_of => Symbol, :name_attribute => true, :required => true
attribute :name, :kind_of => [String, Symbol], :name_attribute => true, :required => true
attribute :description, :kind_of => String

attribute :definition, :kind_of => String
Expand Down