Sha256: 4da51faf38501856d29d77f76b8611c8e0ecfdb7951ba93e7cfb6a5af2a26c2d

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

require "thor"

module Codelation
  class Cli < Thor
  private

    # Install dependencies for building and installing everything else.
    def install_dependencies
      unless `which brew`.length > 1
        print_command("Installing Homebrew from http://brew.sh")
        print_command("Re-run `codelation developer:install after Homebrew has been installed`")
        sleep 3
        exec('ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"')
      end

      run_command("brew install bash")
      run_command("brew install git")
      run_command("brew install heroku")
      run_command("brew install imagemagick")
      run_command("brew install node")
      run_command("brew install openssl")
      run_command("brew install shellcheck")
      run_command("brew install v8")
      run_command("brew install wget")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
codelation-cli-0.0.22 lib/codelation/development/dependencies.rb
codelation-cli-0.0.21 lib/codelation/development/dependencies.rb