Sha256: 81d7c20fd5b0bb56b5ae341a0fed7432011b0fbfae404b9850114971159af241

Contents?: true

Size: 612 Bytes

Versions: 1

Compression:

Stored size: 612 Bytes

Contents

require 'exogenesis/abstract_package_manager'

# Installs and removes OhMyZSH
class OhMyZSH < AbstractPackageManager
  def install
    print "Cloning Oh-my-zsh..."
    target = File.join Dir.home, ".oh-my-zsh"

    if File.exists? target
      puts "Oh-my-zsh already exists"
    else
      `git clone git://github.com/moonglum/oh-my-zsh.git #{target}`
      puts "Cloned!"
    end
  end

  def teardown
    print "Removing Oh-my-zsh..."
    target = File.join Dir.home, ".oh-my-zsh"

    if File.exists? target
      `rm -r #{target}`
      puts "Removed!"
    else
      puts "Did not exist"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
exogenesis-0.0.1 lib/exogenesis/oh-my-zsh.rb