Skip to content

Commit

Permalink
Merge pull request #189 from k0kubun/type-definition
Browse files Browse the repository at this point in the history
Fix missing type definition for documentation
  • Loading branch information
ryotarai committed Dec 30, 2015
2 parents 925ad23 + a4f24b6 commit 626d853
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/itamae/resource/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Git < Base
define_attribute :destination, type: String, default_name: true
define_attribute :repository, type: String, required: true
define_attribute :revision, type: String
define_attribute :recursive, default: false
define_attribute :recursive, type: [TrueClass, FalseClass], default: false

def pre_action
case @current_action
Expand Down
2 changes: 1 addition & 1 deletion lib/itamae/resource/link.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Link < Base
define_attribute :action, default: :create
define_attribute :link, type: String, default_name: true
define_attribute :to, type: String, required: true
define_attribute :force, default: false
define_attribute :force, type: [TrueClass, FalseClass], default: false

def pre_action
case @current_action
Expand Down

0 comments on commit 626d853

Please sign in to comment.