diff options
Diffstat (limited to 'lib/puppet/rails/host.rb')
-rw-r--r-- | lib/puppet/rails/host.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/puppet/rails/host.rb b/lib/puppet/rails/host.rb index 0b88afe62..3efdfa9df 100644 --- a/lib/puppet/rails/host.rb +++ b/lib/puppet/rails/host.rb @@ -48,6 +48,8 @@ class Puppet::Rails::Host < ActiveRecord::Base host.setresources(hash[:resources]) + host.last_compile = Time.now + host.save return host @@ -56,7 +58,7 @@ class Puppet::Rails::Host < ActiveRecord::Base def tags=(tags) tags.each do |tag| self.tag_with tag - end + end end # Return the value of a fact. @@ -87,6 +89,11 @@ class Puppet::Rails::Host < ActiveRecord::Base resource.to_rails(self) end end + + def update_connect_time + self.last_connect = Time.now + save + end end # $Id$ |