orientation/orientation

View on GitHub
bin/system

Summary

Maintainability
Test Coverage
#!/usr/bin/env ruby
require 'pathname'
require 'fileutils'
include FileUtils

# path to your application root.
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)

def system!(*args)
  system(*args) || abort("\n== Command #{args} failed ==")
end

chdir APP_ROOT do
  puts '== Installing system dependencies (macOS) =='
  system! 'brew tap Homebrew/bundle'
  system('brew bundle check') || system!('brew bundle')
end