rr3tt / rumbda

Run ruby scripts on aws lambda.
MIT License
105 stars 18 forks source link

rumbda init is failing if parent directory has Gemfile with uninstalled dependencies #5

Open rr3tt opened 7 years ago

rr3tt commented 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).