R
RichardOnRails
Hi,
I decided to create a batch file to build a RubyOnRails application
step-by-step. I want to take this approach so that I'd have a
reproducible build process.
After a couple of commands to switch to the required working
directory, the first substantive Rails command was invoked. It's a
command that's always worked reliably for me and I believe many Rails
programmers. Judging by its output, I believe it worked correctly
from this batch-file invocation. But the immediately following
command was not executed. I'd like to find out why.
Below is version stripped of most of the things relevant to this
problem: The Command Window output is provided also.
Thanks in Advance,
Richard
K:
cd K:\_Projects\Ruby\_Rails_Apps\_EIMS
if "%1" == "run" goto step1_run
:step1_run
rails RTS2 –d mysql
@echo RTS2 creation completed
goto remaining_steps
:remaing_steps
@echo ----
@ echo Beginning remainining steps
@ echo ---
ruby generate/scaffold Expense vendor:string description:string
category:string account:string amount:decimal mode:string
tran_date:date user_id:decimal
======== Command Window ======
C:\>GenerateRailsAppX run
C:\>K:
K:\>cd K:\_Projects\Ruby\_Rails_Apps\_EIMS
K:\_Projects\Ruby\_Rails_Apps\_EIMS>if "run" == "run" goto step1_run
K:\_Projects\Ruby\_Rails_Apps\_EIMS>rails RTS2 ûd mysql
exists
exists app/controllers
exists app/helpers
exists app/models
exists app/views/layouts
exists config/environments
exists config/initializers
[snip]
identical doc/README_FOR_APP
identical log/server.log
identical log/production.log
identical log/development.log
identical log/test.log
K:\_Projects\Ruby\_Rails_Apps\_EIMS>
NOTE: The echo command immediately following the Rails command never
displayed it's content.
I decided to create a batch file to build a RubyOnRails application
step-by-step. I want to take this approach so that I'd have a
reproducible build process.
After a couple of commands to switch to the required working
directory, the first substantive Rails command was invoked. It's a
command that's always worked reliably for me and I believe many Rails
programmers. Judging by its output, I believe it worked correctly
from this batch-file invocation. But the immediately following
command was not executed. I'd like to find out why.
Below is version stripped of most of the things relevant to this
problem: The Command Window output is provided also.
Thanks in Advance,
Richard
K:
cd K:\_Projects\Ruby\_Rails_Apps\_EIMS
if "%1" == "run" goto step1_run
:step1_run
rails RTS2 –d mysql
@echo RTS2 creation completed
goto remaining_steps
:remaing_steps
@echo ----
@ echo Beginning remainining steps
@ echo ---
ruby generate/scaffold Expense vendor:string description:string
category:string account:string amount:decimal mode:string
tran_date:date user_id:decimal
======== Command Window ======
C:\>GenerateRailsAppX run
C:\>K:
K:\>cd K:\_Projects\Ruby\_Rails_Apps\_EIMS
K:\_Projects\Ruby\_Rails_Apps\_EIMS>if "run" == "run" goto step1_run
K:\_Projects\Ruby\_Rails_Apps\_EIMS>rails RTS2 ûd mysql
exists
exists app/controllers
exists app/helpers
exists app/models
exists app/views/layouts
exists config/environments
exists config/initializers
[snip]
identical doc/README_FOR_APP
identical log/server.log
identical log/production.log
identical log/development.log
identical log/test.log
K:\_Projects\Ruby\_Rails_Apps\_EIMS>
NOTE: The echo command immediately following the Rails command never
displayed it's content.