I suspect it is the dev mode class loader that is messing things up.
Are you doing a "'require 'capistrano/configuration'" somewhere?

- Jamis

On 8/21/07, goodieboy <[EMAIL PROTECTED]> wrote:
>
> Ahh! I got it. You're hint made it clear to me. I've created a global
> instance in environment.rb and now access that through my actions.
> Works great now! :-) What's happening behind the scenes that make it
> so you must only have one instance?
>
> Matt
>
> On Aug 21, 3:16 pm, goodieboy <[EMAIL PROTECTED]> wrote:
> > Hi Jamis,
> >
> > This is in a development environment. Just doing the standard ./script/
> > server
> >
> > For now, I just have one action, that instantiates like: config =
> > Capistrano::Configuration.new
> >
> > I've been trying everything I can think of but nothing yet. Thanks!
> >
> > Matt
> >
> > On Aug 21, 3:12 pm, "Jamis Buck" <[EMAIL PROTECTED]> wrote:
> >
> > > Is this in a production or development Rails environment? And, are you
> > > instantiating the configuration object every time you need it, or
> > > reusing an existing configuration object?
> >
> > > - Jamis
> >
> > > On 8/21/07, goodieboy <[EMAIL PROTECTED]> wrote:
> >
> > > > Hi Jamis,
> >
> > > > Yeah what's strange is that Rails is successfully executing it on the
> > > > *first* request, but after that it says the method is missing. So, I'm
> > > > thinking it has to do something with using "load" or "require"? I've
> > > > been trying a bunch of different things and just can't get it to work
> > > > beyond the first request.
> >
> > > > Thanks,
> > > > Matt
> >
> > > > On Aug 21, 1:41 pm, "Jamis Buck" <[EMAIL PROTECTED]> wrote:
> > > > > Hmm. If you're getting that error, then it sounds like cap isn't
> > > > > actually loading the multistage code. Are you positive it is getting
> > > > > loaded?
> >
> > > > > - Jamis
> >
> > > > > On 8/21/07, goodieboy <[EMAIL PROTECTED]> wrote:
> >
> > > > > > Hi Jamis,
> >
> > > > > > I keep getting this error:
> >
> > > > > > undefined method `production' for #<Capistrano::Configuration:
> > > > > > 0x3621bac>
> >
> > > > > > The cap file I'm loading is doing a require on the multistage and
> > > > > > monitor files.
> >
> > > > > > Matt
> >
> > > > > > On Aug 17, 1:22 pm, "Jamis Buck" <[EMAIL PROTECTED]> wrote:
> > > > > > > require 'capistrano/configuration'
> >
> > > > > > > config = Capistrano::Configuration.new
> > > > > > > config.load "my/custom/tasks" # this file requires multistage
> > > > > > > config.production # set the production multistage environment
> > > > > > > config.deploy # run a task
> >
> > > > > > > - Jamis
> >
> > > > > > > On 8/17/07, goodieboy <[EMAIL PROTECTED]> wrote:
> >
> > > > > > > > Hi,
> >
> > > > > > > > I want to build a Rails app that uses Capistrano to execute 
> > > > > > > > tasks. I
> > > > > > > > can't figure out how to call Capistrano tasks in a controller, 
> > > > > > > > using
> > > > > > > > multistage? How is this done?
> >
> > > > > > > > Thanks,
> > > > > > > > Matt
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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