Sha256: 7cee7982cda77f49e3a9dd4ba17dfa74996e02ab34dc941f03c983851243af17

Contents?: true

Size: 845 Bytes

Versions: 1

Compression:

Stored size: 845 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 imagemagick")
      run_command("brew install openssl")
      run_command("brew install phantomjs")
      run_command("brew install shellcheck")
      run_command("brew install v8")
      run_command("brew install wget")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
codelation-cli-0.0.17 lib/codelation/development/dependencies.rb