Open rr3tt opened 7 years ago
If foo/Gemfile has dependencies that are not installed, then running command cd foo/bar/; rumbda init will fail as it's trying to pull in the parent dirs dependencies. I believe this is caused by the require statement here https://github.com/kleaver/rumbda/blob/v1.1.0/lib/rumbda.rb#L5 and maybe here https://github.com/kleaver/rumbda/blob/v1.1.0/lib/rumbda.rb#L3. I think moving these into https://github.com/kleaver/rumbda/blob/v1.1.0/lib/rumbda/build.rb where they are actually used would fix the issue (a Gemfile should already exist at this point so bundler shouldn't climb the tree looking for a Gemfile).
foo/Gemfile
cd foo/bar/; rumbda init
If
foo/Gemfile
has dependencies that are not installed, then running commandcd foo/bar/; rumbda init
will fail as it's trying to pull in the parent dirs dependencies. I believe this is caused by the require statement here https://github.com/kleaver/rumbda/blob/v1.1.0/lib/rumbda.rb#L5 and maybe here https://github.com/kleaver/rumbda/blob/v1.1.0/lib/rumbda.rb#L3. I think moving these into https://github.com/kleaver/rumbda/blob/v1.1.0/lib/rumbda/build.rb where they are actually used would fix the issue (a Gemfile should already exist at this point so bundler shouldn't climb the tree looking for a Gemfile).