name: Atom
version: 201907072045
description: A hackable text editor
os_commands:
  - os: osx
    installation_strategies:
      - &brew_cask
          name: brew_cask
          number: 1
          default: true
          description: Install Atom using Homebrew Cask
          up:
            pre:
              command: |
                brew help
              success: true
            main:
              command: |
                brew doctor
                brew update
                brew search atom
                brew cask info atom
                brew cask install atom
                brew cleanup
              success: true
          down:
            pre:
              command: brew help
              success: true
            main:
              command: |
                brew cask uninstall atom
                brew cleanup
              success: true
  - os: arch_linux
    installation_strategies:
      - &pacman
          name: pacman
          number: 1
          default: true
          description: Install Atom using Pacman
          up:
            main:
              command: sudo pacman -S --noconfirm atom
              success: true
          down:
            main:
              command: sudo pacman -R --noconfirm atom
              success: true
  - os: ubuntu
    installation_strategies:
      - &apt-get
          name: apt-get
          number: 1
          default: true
          description: Install Atom using Apt-Get
          up:
            main:
              command: sudo apt-get install -y atom
              success: true
          down:
            main:
              command: sudo apt-get uninstall -y atom
              success: true
  - os: pop_os
    installation_strategies:
      - *apt-get
