#!/usr/bin/env ruby require 'bundler/setup' require 'awesome_print' require 'bin_install' APP_ROOT = File.expand_path('..', __dir__) Dir.chdir(APP_ROOT) do puts "Building bin_install #{BinInstall::VERSION}.".white system('git pull origin master') system('gem build bin_install.gemspec') system("gem install bin_install-#{BinInstall::VERSION}.gem") puts 'Done.'.green end