First of all I like to say that I am absolutly begginer in Ruby and I need to do some modifications.
Just to know, I am using windows 7.
I have installed the Foundation 5 gem in my Ruby, but when I try to run the command foundation new projectName
I am gettings the error The system cannot find the path specified
.
After a long research I have find that Foundation gem, is creating the project folder, then generating the appropriate files, and finally trying to run the command bower install
from the parent folder, not from inside the project folder, that contains the bower.json
.
More specific, lets say I am in folder C:\Test\
and I am running the command
foundation new myApp
The foundation gem, will build the folder myApp
and inside this folder will generate all the required files.
Finally, while I am in C:\
, foundation gem, will try to run the command
bower install
while the bower.json
located under the folder C:\TEST\myApp\
Currenly what I am doing, is to modify the generator.rb
file from Foundation gem, to set the location of the file bower.json
.
I have try any of the following, but none working:
run("#{name/}bower install", capture: true, verbose: false)
run("/#{name/}bower install", capture: true, verbose: false)
where #{name}
in this example is the myApp
.
Is there any way to say "Change Directory and go to the project dir before run the command bower install
" ?
Can somebody please help me ?