summaryrefslogtreecommitdiffstats
path: root/lib/puppet/rails/rails_resource.rb
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@puppetlabs.com>2011-07-22 14:11:35 -0700
committerDaniel Pittman <daniel@puppetlabs.com>2011-07-22 16:26:20 -0700
commit6bec2df0860b71730b99ddd9f1764aa2ce0dc960 (patch)
treeca48a127207e256acb7f366817ceb8babbc3b338 /lib/puppet/rails/rails_resource.rb
parentfeec7b3df713569f76b93ae8cef882e9ddc1bf35 (diff)
downloadpuppet-6bec2df0860b71730b99ddd9f1764aa2ce0dc960.tar.gz
puppet-6bec2df0860b71730b99ddd9f1764aa2ce0dc960.tar.xz
puppet-6bec2df0860b71730b99ddd9f1764aa2ce0dc960.zip
(#8561) Use canonical names for options to actions.
When we invoke an action, we parse a set of options. These have a canonical name, and optionally a set of aliases. For example, :bar might have :b as an alias to allow a short name to be given. Previously we would just pass this on as received; if you passed :bar you got :bar, and if you passed :b you got :b. This works, but means that every action has to write the same code to extract the appropriate version of an option from whatever set of aliases might be passed. Now, instead, we centralize that and always pass options as their canonical name to the action code. This makes it simpler to work with. (This happens before any validation, or other user-supplied, code to simplify everything that handles options.) Reviewed-By: Pieter van de Bruggen <pieter@puppetlabs.com>
Diffstat (limited to 'lib/puppet/rails/rails_resource.rb')
0 files changed, 0 insertions, 0 deletions