Sha256: 7057ef120f93133b54c52ff6f57b3542d8933efebfece7ba934d1be4127bb59c
Contents?: true
Size: 574 Bytes
Versions: 60
Compression:
Stored size: 574 Bytes
Contents
#!/bin/sh if [ -z "$1" ]; then echo "Please specify the remote server name" exit 1 fi mkdir -p tmp if ls vendor/gems/*/*.gemspec > /dev/null 2>&1; then tar cf tmp/gemfiles_for_remote_install Gemfile Gemfile.lock vendor/gems else tar cf tmp/gemfiles_for_remote_install Gemfile Gemfile.lock fi scp tmp/gemfiles_for_remote_install $1:~ stty_orig=`stty -g` stty -echo ssh -t $1 "mkdir /tmp/install_gems; mv gemfiles_for_remote_install /tmp/install_gems; cd /tmp/install_gems; tar xf gemfiles_for_remote_install; bundle install; rm -rf /tmp/install_gems" stty $stty_orig
Version data entries
60 entries across 60 versions & 1 rubygems