Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use bundle check for gem install (closes: #93) #99

Merged
merged 1 commit into from
Dec 10, 2013

Conversation

sbadia
Copy link
Owner

@sbadia sbadia commented Dec 10, 2013

Updated and everything went good (initial/re-run), thanks @igalic for pointing this !

.git_setup_done was removed in profit to bundle check cmd (see log after)
.gitlab_setup_done is keept in order to not re-run initial setup.

(Travis and functional testing with vagrant was happy)

git@gitlab:~/gitlab$ bundle check
The Gemfile's dependencies are satisfied
git@gitlab:~/gitlab$ echo $?
0
git@gitlab:/tmp/gitlabhq$ bundle check
The following gems are missing
...
git@gitlab:/tmp/gitlabhq$ echo $?
1

  .git_setup_done was removed in profit to bundle check cmd (see log after)
  .gitlab_setup_done is keept in order to not re-run initial setup.

  git@gitlab:~/gitlab$ bundle check
  The Gemfile's dependencies are satisfied
  git@gitlab:~/gitlab$ echo $?
  0
  git@gitlab:/tmp/gitlabhq$ bundle check
  The following gems are missing
  ...
  git@gitlab:/tmp/gitlabhq$ echo $?
  1
@ghost ghost assigned sbadia Dec 10, 2013
@igalic
Copy link
Collaborator

igalic commented Dec 10, 2013

Big 👍
I love how much simpler that makes the code!

@igalic igalic mentioned this pull request Dec 10, 2013
@atomaka
Copy link
Collaborator

atomaka commented Dec 10, 2013

I didn't even realize bundle check was existed until @igalic presented it. This is obviously a better solution. I won't have a chance to run a test until either this afternoon or tomorrow, but the changes look good to me if they worked for you.

@sbadia
Copy link
Owner Author

sbadia commented Dec 10, 2013

Yep it's a better/cleaner solution,
Everything works well in my vagrant box (test from bare)., but I let you merge after testing (peer review :-))

atomaka added a commit that referenced this pull request Dec 10, 2013
Use bundle check for gem install (closes: #93)
@atomaka atomaka merged commit 6826069 into master Dec 10, 2013
@atomaka
Copy link
Collaborator

atomaka commented Dec 10, 2013

Looking good after a quick smoke test and rspec!

@sbadia sbadia deleted the feature/bundle_check branch December 12, 2013 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants