~ubuntu-branches/ubuntu/trusty/puppet/trusty

« back to all changes in this revision

Viewing changes to lib/puppet/rails/host.rb

  • Committer: Package Import Robot
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2011-10-22 14:08:22 UTC
  • mfrom: (1.1.25) (3.1.32 sid)
  • Revision ID: package-import@ubuntu.com-20111022140822-odxde5lohc45yhuz
Tags: 2.7.6-1
* New upstream release (CVE-2011-3872)
* Remove cherry-picked "groupadd_aix_warning" patch
* Install all new manpages

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
require 'puppet/node/environment'
1
2
require 'puppet/rails'
2
3
require 'puppet/rails/resource'
3
4
require 'puppet/rails/fact_name'
28
29
    host
29
30
  end
30
31
 
 
32
  # Override the setter for environment to force it to be a string, lest it
 
33
  # be YAML encoded.  See #4487.
 
34
  def environment=(value)
 
35
    super value.to_s
 
36
  end
 
37
 
31
38
  # returns a hash of fact_names.name => [ fact_values ] for this host.
32
39
  # Note that 'fact_values' is actually a list of the value instances, not
33
40
  # just actual values.