Robert Fitzpatrick wrote:
>> Maybe I missed something earlier in the discussion, but can't you just
>> edit it to:
>>
>> @verbose = true if arg == 'V'
>>
>
> Yes, I guess so, and then uncomment all the places in the code where he
> has....
>
> #puts <something> if @verbose
>
> I'll give it a try, still trying to figure out how to run the task. I
> put the app in development environment with the Apache directive and
> this is all the deprecated info I mentioned and other output when trying
> to "bundle exec", I get "Don't know how to build task 'utils:archives'".
> Is this how I should be trying to run the task?
Never mind my last post, I looked up the command used in cron and made
an adjustment to the DIR for my local box and got the expected response.
bundle exec rake utils:process_archives V DIR="/tmp"
I updated the verbose line to recognize the 'V' argument as suggested
and it does output the conditional puts lines, but I do get the
following at the end....
rake aborted!
Don't know how to build task 'V'
The task does appear to complete successfully, with comments if I
specify 'V' and without if not, as expected. Is this normal or should I
be applying the argument differently?
--
Robert
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/546D1585.7090104%40webtent.org.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment