Yep, definitely a version problem -- thanx.

On Jul 25, 5:51 pm, Tom Werner <[email protected]> wrote:
> From the stacktrace, you're running god-0.10.1 which does not have the
> new-style notifications. That came about in 0.11.0. I'm not sure why
> irb would be using 0.11.0 and the executable would still be on 0.10.1.
> Can you check our gem installation and make sure everything is up to
> date and properly installed?
>
> Tom
>
>
>
>
>
> On Sun, Jul 25, 2010 at 2:32 PM, Josh <[email protected]> wrote:
> > Why does this work in irb, but not when I try to load it with god?
>
> > $ irb
> >> require 'god'
> >  => true
> >> God::Contacts::Email.defaults do |d|
> >>       d.from_email      = '[email protected]'
> > ?>    d.from_name       = 'God Notifications'
> > ?>    d.delivery_method = :sendmail
> > ?>  end
> >  => :sendmail
>
> > # cat notifications.god
> > God::Contacts::Email.defaults do |d|
> >  d.from_email      = '[email protected]'
> >  d.from_name       = 'God Notifications'
> >  d.delivery_method = :sendmail
> > end
>
> > # god -D -c notifications.god
> > I [2010-07-25 21:31:04]  INFO: Loading notifications.god
> > There was an error in notifications.god
> >        undefined method `defaults' for God::Contacts::Email:Class
> >        notifications.god:1
> >        /usr/lib/ruby/gems/1.8/gems/god-0.10.1/bin/../lib/god/cli/run.rb:
> > 156:in `load'
> >        /usr/lib/ruby/gems/1.8/gems/god-0.10.1/bin/../lib/god/cli/run.rb:
> > 156:in `load_god_file'
> >        /usr/lib/ruby/gems/1.8/gems/god-0.10.1/bin/../lib/god/cli/run.rb:
> > 148:in `load_config'
> >        /usr/lib/ruby/gems/1.8/gems/god-0.10.1/bin/../lib/god/cli/run.rb:
> > 147:in `each'
> >        /usr/lib/ruby/gems/1.8/gems/god-0.10.1/bin/../lib/god/cli/run.rb:
> > 147:in `load_config'
> >        /usr/lib/ruby/gems/1.8/gems/god-0.10.1/bin/../lib/god/cli/run.rb:
> > 72:in `default_run'
> >        /usr/lib/ruby/gems/1.8/gems/god-0.10.1/bin/../lib/god/cli/run.rb:
> > 84:in `run_in_front'
> >        /usr/lib/ruby/gems/1.8/gems/god-0.10.1/bin/../lib/god/cli/run.rb:
> > 23:in `dispatch'
> >        /usr/lib/ruby/gems/1.8/gems/god-0.10.1/bin/../lib/god/cli/run.rb:8:in
> > `initialize'
> >        /usr/lib/ruby/gems/1.8/gems/god-0.10.1/bin/god:122:in `new'
> >        /usr/lib/ruby/gems/1.8/gems/god-0.10.1/bin/god:122
> >        /usr/bin/god:19:in `load'
> >        /usr/bin/god:19
> > E [2010-07-25 21:31:04] ERROR: File 'notifications.god' could not be
> > loaded
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "god.rb" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/god-rb?hl=en.
>
> --
> Tom Preston-Werner
> github.com/mojombo

-- 
You received this message because you are subscribed to the Google Groups 
"god.rb" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/god-rb?hl=en.

Reply via email to