Sha256: f42ce9c7fe61d65af72bec0bb15f7d990108f77a125156420aeedb0fa5fb0699

Contents?: true

Size: 1.54 KB

Versions: 3

Compression:

Stored size: 1.54 KB

Contents

require "thor"

module Codelation
  class Cli < Thor
    desc "development:install", "Install the development tools used by Codelation"
    long_desc <<-LONGDESC
      Installs the following development tools:\r\n
      - Atom.app (https://atom.io)\n
      - Atom Packages: erb-snippets, linter, linter-csslint, linter-erb, linter-jshint,
          linter-php, linter-rubocop, linter-ruby, linter-scss-lint, remote-atom\n
      - Postgres.app (http://postgresapp.com)\n
      - PSequel.app (http://www.psequel.com)\n
      - Ruby (https://www.ruby-lang.org)\n
      - Ruby Gems: bundler, rubocop, scss-lint\n
      - Sequel Pro.app (http://www.sequelpro.com)
    LONGDESC
    def development_install
      print_heading("Installing Dependencies")
      install_dependencies

      unless Dir.exist?("/Applications/Atom.app")
        print_heading("Installing Atom.app")
        install_atom

        print_heading("Installing Atom Packages")
        install_atom_packages
      end

      print_heading("Installing Dot Files")
      install_dot_files

      unless Dir.exist?("/Applications/Postgres.app")
        print_heading("Installing Postgres.app")
        install_postgres
      end

      unless Dir.exist?("/Applications/PSequel.app")
        print_heading("Installing PSequel.app")
        install_psequel
      end

      print_heading("Installing Ruby")
      install_ruby

      unless Dir.exist?("/Applications/Sequel Pro.app")
        print_heading("Installing Sequel Pro.app")
        install_sequel_pro
      end

      `source ~/.bash_profile`
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
codelation-cli-0.0.21 lib/codelation/development.rb
codelation-cli-0.0.20 lib/codelation/development.rb
codelation-cli-0.0.19 lib/codelation/development.rb