Sha256: 6115c3c69c7b49e706cf8f9a45d2dd55e77c044681861c9898bfdc1e1b2ef3a7

Contents?: true

Size: 801 Bytes

Versions: 7

Compression:

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
codelation-cli-0.0.20 lib/codelation/development/dependencies.rb
codelation-cli-0.0.19 lib/codelation/development/dependencies.rb
codelation-cli-0.0.18 lib/codelation/development/dependencies.rb
codelation-cli-0.0.16 lib/codelation/development/dependencies.rb
codelation-cli-0.0.15 lib/codelation/development/dependencies.rb
codelation-cli-0.0.14 lib/codelation/development/dependencies.rb
codelation-cli-0.0.13 lib/codelation/development/dependencies.rb