Skip to content
This repository has been archived by the owner on Feb 28, 2021. It is now read-only.

Commit

Permalink
No need to specify caller.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Jul 16, 2011
1 parent 851eb02 commit fded89d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/dm-is-predefined/is/predefined.rb
Expand Up @@ -83,7 +83,7 @@ def predefined_resource(name,extra_attributes={})
attributes = predefined_attributes[name]

unless attributes
raise(UnknownResource,"The resource '#{name}' was not predefined",caller)
raise(UnknownResource,"The resource '#{name}' was not predefined")
end

self.first_or_create(attributes.merge(extra_attributes))
Expand Down Expand Up @@ -117,7 +117,7 @@ def predefined_resource_with(desired_attributes={})
return predefined_resource(name) if shares_attributes
end

raise(UnknownResource,"Could not find a predefined resource which shared the given attributes",caller)
raise(UnknownResource,"Could not find a predefined resource which shared the given attributes")
end

protected
Expand All @@ -139,7 +139,7 @@ def predefine(name,attributes={})
name = name.to_s

if attributes.empty?
raise(ArgumentError,"Cannot predefine a resource with no attributes",caller)
raise(ArgumentError,"Cannot predefine a resource with no attributes")
end

predefined_attributes[name.to_sym] = attributes
Expand Down

0 comments on commit fded89d

Please sign in to comment.