diff options
author | shadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-15 00:17:16 +0000 |
---|---|---|
committer | shadoi <shadoi@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-15 00:17:16 +0000 |
commit | e28c6045e7645f011cdad308701c1c34f80f9cae (patch) | |
tree | 73e63748b813a664efc30bfdcb74863516c5813c /lib/puppet/rails/rails_resource.rb | |
parent | 3d070f71b55aefd2191b0027ecb2d2384e305085 (diff) | |
download | puppet-e28c6045e7645f011cdad308701c1c34f80f9cae.tar.gz puppet-e28c6045e7645f011cdad308701c1c34f80f9cae.tar.xz puppet-e28c6045e7645f011cdad308701c1c34f80f9cae.zip |
Remove old files, don't require pp anymore
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1933 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/rails/rails_resource.rb')
-rw-r--r-- | lib/puppet/rails/rails_resource.rb | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/lib/puppet/rails/rails_resource.rb b/lib/puppet/rails/rails_resource.rb deleted file mode 100644 index 0b981f963..000000000 --- a/lib/puppet/rails/rails_resource.rb +++ /dev/null @@ -1,35 +0,0 @@ -require 'puppet' -require 'puppet/rails/rails_parameter' - -#RailsParameter = Puppet::Rails::RailsParameter -class Puppet::Rails::RailsResource < ActiveRecord::Base - has_many :rails_parameters, :dependent => :delete_all - serialize :tags, Array - - belongs_to :host - - # Convert our object to a resource. Do not retain whether the object - # is collectable, though, since that would cause it to get stripped - # from the configuration. - def to_resource(scope) - hash = self.attributes - hash["type"] = hash["restype"] - hash.delete("restype") - hash.delete("host_id") - hash.delete("id") - hash.each do |p, v| - hash.delete(p) if v.nil? - end - hash[:scope] = scope - hash[:source] = scope.source - hash[:rails_id] = self.id - obj = Puppet::Parser::Resource.new(hash) - rails_parameters.each do |param| - obj.set(param.to_resourceparam(scope.source)) - end - - return obj - end -end - -# $Id$ |