Chris,

 I'm with jamis here, you've used :leaguesmart somewhere before it is set...
if you are trying to use it early in the recipe you might need to put it in
a Proc <http://www.ntecs.de/old-hp/s-direktnet/ruby/uguide18.html>.

set :leaguesmart, "192.168.3.117" # ..or whatever!
set :repository, "[EMAIL PROTECTED]"

becomes...

set :repository, { "[EMAIL PROTECTED]" }

... just a thought, if for *some* reason your files are being loaded in an
order contrary to the one you are expecting, putting it in a Proc will mean
the code is not evaluated until it is run for the first time, so :repository
won't be evaluated until it is used (which you would imagine to be after all
the files are loaded)

       Lee

2008/10/27 chris <[EMAIL PROTECTED]>

>
> The only places that the word leaguesmart exists in the deploy script
> is for the :application and for the set :repository
> "[EMAIL PROTECTED]". I have also done a search throughout the
> project for the word leaguesmart, but cannot find any place that it
> shouldn't exist.
>
> I checked the history for the deploy.rb file and it hasn't been
> changed since the end of August.  Is there some place else that could
> be the problem?
>
> On Oct 26, 10:53 pm, Jamis Buck <[EMAIL PROTECTED]> wrote:
> > Looks like you're referencing a variable 'leaguesmart' without first
> > declaring it? Just a guess, without having seen your deployment recipes.
> >
> > - Jamis
> >
> > On Oct 26, 2008, at 10:33 PM, chris wrote:
> >
> >
> >
> > > I am not sure why the deployment script is suddenly failing.
> >
> > > Here is what I get when I try to run the cap deploy cmd:
> > > ==========
> > > $ cap deploy
> > > /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/capistrano/
> > > configuration/variables.rb:122:in `method_missing': undefined local
> > > variable or method `leaguesmart' for #<Capistrano::Configuration:
> > > 0x25760> (NameError)
> > >    from Capfile:1:in `load'
> > >    from /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/capistrano/
> > > configuration/loading.rb:172:in `load_from_file'
> > >    from /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/capistrano/
> > > configuration/loading.rb:89:in `load'
> > >    from /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/capistrano/
> > > configuration/loading.rb:86:in `load'
> > >    from /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/capistrano/
> > > configuration/loading.rb:86:in `each'
> > >    from /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/capistrano/
> > > configuration/loading.rb:86:in `load'
> > >    from
> /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/capistrano/cli/
> > > execute.rb:64:in `load_recipes'
> > >    from
> /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/capistrano/cli/
> > > execute.rb:64:in `each'
> > >    from
> /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/capistrano/cli/
> > > execute.rb:64:in `load_recipes'
> > >    from
> /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/capistrano/cli/
> > > execute.rb:30:in `execute!'
> > >    from
> /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/lib/capistrano/cli/
> > > execute.rb:14:in `execute'
> > >    from /Library/Ruby/Gems/1.8/gems/capistrano-2.5.0/bin/cap:4
> > >    from /usr/bin/cap:19:in `load'
> > >    from /usr/bin/cap:19
> >
> > > Any ideas to why this is happening?
> >
>

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to