Robert,
I can't tell you all the ins and outs of your script but what you're seeing here is that rake is looking at the V thinking it is another rake task you want to run (that's why the first one succeeds and then gives you the error)
You probably want something like V="true" or V=1 or something like that.
-Jason
> On Nov 19, 2014, at 5:11 PM, Robert Fitzpatrick <robert@webtent.org> wrote:
>
> 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?
----
Jason Fleetwood-Boldt
tech@datatravels.com
http://www.jasonfleetwoodboldt.com/writing
All material © Jason Fleetwood-Boldt 2014. Public conversations may be turned into blog posts (original poster information will be made anonymous). Email jason@datatravels.com with questions/concerns about this.
--
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/93D2A183-E060-4BB5-9CAE-93DCAB47C310%40datatravels.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment