diff options
Diffstat (limited to 'lib/puppet/rails/host.rb')
-rw-r--r-- | lib/puppet/rails/host.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/puppet/rails/host.rb b/lib/puppet/rails/host.rb index fcd078cb7..0b88afe62 100644 --- a/lib/puppet/rails/host.rb +++ b/lib/puppet/rails/host.rb @@ -53,6 +53,12 @@ class Puppet::Rails::Host < ActiveRecord::Base return host end + def tags=(tags) + tags.each do |tag| + self.tag_with tag + end + end + # Return the value of a fact. def fact(name) if fv = self.fact_values.find(:first, :conditions => "fact_names.name = '#{name}'") |