たまたまブレーカーが落ちたら bundle install できなくなり困りました。

gemのactiveadminを試そうと `bundle install` をしていたら、その最中に電子レンジつけていたためかブレーカーが落ち、ルータの電源が切れてしまいネットが繋がらなくなりました。そのためか `bundle install` ができなくなりました＼(^o^)／

# bundle install で失敗
bundle installできません。

```bash:
bundle install

Updating git://github.com/activeadmin/activeadmin.git
fatal: '/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Retrying git clone --no-checkout --quiet "/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528" "/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60" due to error (2/3): Bundler::Source::Git::GitCommandError Git error: command `git clone --no-checkout --quiet "/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528" "/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60"` in directory /var/www/html/pugiemonn.com has failed.
If this error persists you could try removing the cache directory '/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528'
fatal: '/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Retrying git clone --no-checkout --quiet "/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528" "/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60" due to error (3/3): Bundler::Source::Git::GitCommandError Git error: command `git clone --no-checkout --quiet "/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528" "/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60"` in directory /var/www/html/pugiemonn.com has failed.
If this error persists you could try removing the cache directory '/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528'
fatal: '/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Git error: command `git clone --no-checkout --quiet
"/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528"
"/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-18fd1c23fc60"` in directory /var/www/html/pugiemonn.com has failed.
If this error persists you could try removing the cache directory
'/var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528'
```
こまりました。

# cache directory を rm
cache directoryを消してみなよとあるので消してみました。

```
rm -rf /var/www/html/pugiemonn.com/vendor/bundle/ruby/2.2.0/cache/bundler/git/activeadmin-c24fcef949b2f1bbdf6b5a17650dcd86d73f2528
```

# 再度 bundle install
もう一度 bundle install を試します。

```
bundle install
```

こんどはうまくいきました(☝ ՞ਊ ՞)