how did you install puppet? Do you have more than one install of ruby on your system? Is it possible that when you invoke the interactive ruby console (irb) that it starts a ruby binary that has nothing to do with your puppet install?
On Tuesday, October 14, 2014 4:41:07 PM UTC-7, Spriya wrote: > > Hi Craig, > > even if i do require facter. It is throwing me error. > > *irb(main):002:0> require 'facter'* > *LoadError: no such file to load -- facter* > * from (irb):2:in `require'* > * from (irb):2* > * from :0* > > > On Tuesday, October 14, 2014 5:22:26 PM UTC-4, Craig White wrote: >> >> I don't see a 'file_read' method for Factor::Util >> >> Facter::Util.methods >> => [:freeze, :===, :==, :<=>, :<, :<=, :>, :>=, :to_s, :included_modules, >> :include?, :name, :ancestors, :instance_methods, :public_instance_methods, >> :protected_instance_methods, :private_instance_methods, :constants, >> :const_get, :const_set, :const_defined?, :const_missing, :class_variables, >> :remove_class_variable, :class_variable_get, :class_variable_set, >> :class_variable_defined?, :public_constant, :private_constant, >> :module_exec, :class_exec, :module_eval, :class_eval, :method_defined?, >> :public_method_defined?, :private_method_defined?, >> :protected_method_defined?, :public_class_method, :private_class_method, >> :autoload, :autoload?, :instance_method, :public_instance_method, >> :psych_yaml_as, :yaml_as, :psych_to_yaml, :to_yaml_properties, :to_yaml, >> :nil?, :=~, :!~, :eql?, :hash, :class, :singleton_class, :clone, :dup, >> :initialize_dup, :initialize_clone, :taint, :tainted?, :untaint, :untrust, >> :untrusted?, :trust, :frozen?, :inspect, :methods, :singleton_methods, >> :protected_methods, :private_methods, :public_methods, :instance_variables, >> :instance_variable_get, :instance_variable_set, >> :instance_variable_defined?, :instance_of?, :kind_of?, :is_a?, :tap, :send, >> :public_send, :respond_to?, :respond_to_missing?, :extend, :display, >> :method, :public_method, :define_singleton_method, :object_id, :to_enum, >> :enum_for, :psych_y, :equal?, :!, :!=, :instance_eval, :instance_exec, >> :__send__, :__id__] >> >> Craig >> >> On Tuesday, October 14, 2014 2:01:15 PM UTC-7, Spriya wrote: >>> >>> Hi, >>> >>> I am am trying to execute my puppet facts using irb. so when i use irb. >>> It is throwing me error. No such file to load -- facter/util/file_read >>> >>> *$irb* >>> *irb(main):001:0> require 'facter/util/file_read'* >>> *LoadError: no such file to load -- facter/util/file_read* >>> * from (irb):1:in `require'* >>> * from (irb):1* >>> * from :0* >>> *irb(main):002:0> require 'facter'* >>> *LoadError: no such file to load -- facter* >>> * from (irb):2:in `require'* >>> * from (irb):2* >>> * from :0* >>> >>> Anyone help me >>> >> -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7167ec34-bfc8-4811-8812-9dde213bad1a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.