Sha256: 645215bd44b470d2381e5e580f5b5f3e17ee836e1625250bfabec4facee584ee

Contents?: true

Size: 1.36 KB

Versions: 1

Compression:

Stored size: 1.36 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
      - 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

      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

1 entries across 1 versions & 1 rubygems

Version Path
codelation-cli-0.0.18 lib/codelation/development.rb