Class: Vundle

Inherits:
Passenger show all
Defined in:
lib/exogenesis/passengers/vundle.rb

Overview

Manages the Vim Package Manager Vundle

Constant Summary collapse

VUNDLE_REPO =
'git://github.com/gmarik/vundle.git'

Instance Method Summary collapse

Methods inherited from Passenger

by_name, emoji_name, #initialize, needs, register_as, with_emoji

Constructor Details

This class inherits a constructor from Passenger

Instance Method Details

#cleanObject



24
25
26
# File 'lib/exogenesis/passengers/vundle.rb', line 24

def clean
  execute_interactive 'Cleaning', 'vim +BundleClean\! +qall'
end

#downObject



20
21
22
# File 'lib/exogenesis/passengers/vundle.rb', line 20

def down
  rm_rf vim_folder
end

#upObject



10
11
12
13
14
15
16
17
18
# File 'lib/exogenesis/passengers/vundle.rb', line 10

def up
  if vundle_folder.exist?
    skip_task 'Cloning Vundle'
  else
    mkpath(vundle_folder)
    execute 'Cloning Vundle', "git clone #{VUNDLE_REPO} #{vundle_folder}"
  end
  execute_interactive 'Installing and Updating Vim Bundles', 'vim +BundleInstall\! +qall'
end