~gandelman-a/ubuntu/precise/facter/merge922788

« back to all changes in this revision

Viewing changes to lib/facter/util/values.rb

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2009-11-06 00:52:19 UTC
  • mfrom: (1.1.6 upstream) (3.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091106005219-6ccua0q7b885z2ad
Tags: 1.5.6-2ubuntu1
* Merge from debian testing, remaining changes:
  - Use bind9-host9 only.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# A util module for facter containing helper methods
 
2
module Facter
 
3
    module Util
 
4
        module Values
 
5
            module_function
 
6
 
 
7
            def convert(value)
 
8
                value = value.to_s if value.is_a?(Symbol)
 
9
                value = value.downcase if value.is_a?(String)
 
10
                value
 
11
            end    
 
12
        end
 
13
    end
 
14
end