Module: TM

Includes:
FileUtils
Defined in:
lib/tmb/bundle.rb,
lib/tmb/bundle.rb,
lib/tmb/commands.rb

Defined Under Namespace

Classes: Bundle, Commands

Constant Summary collapse

TextWrap =
78
IndentSpacing =
10
Indent =
(" " * IndentSpacing)
Justify =
15
Delimiter =
": "
BundleListPrefix =
"  * "
BaseBundleDirectory =
"/Library/Application Support/TextMate/Bundles"
UserBundleDirectory =
"#{ENV['HOME']}/Library/Application Support/TextMate/Bundles"
BundleDirectory =
( File.exist?(BaseBundleDirectory) && Dir.entries(BaseBundleDirectory).size >  Dir.entries(UserBundleDirectory).size ) ? BaseBundleDirectory : UserBundleDirectory
SettingsDirectory =
"#{ENV['HOME']}/.tmb"
App =
File.basename File.dirname(__FILE__)
DB =
".tmbdb"
SearchDB =
".searchdb"
Help =
<<-eos

\033[1m#{App}\033[0m is a utility to search for textmate bundles, download and install
them, all via a convenient command line interface, much like rubygems.


Usage:
======================================

# Search for bundles containing the word 'webrat' in
# the title, description, or author's name.

\033[1m#{App} search webrat\033[0m


# Search for bundles containing the word 'rspec' OR
# 'cucumber' OR 'shoulda' in their title, description,
# or author's name.

\033[1m#{App} search rspec cucumber shoulda\033[0m


# Install a bundle containing the word rspec in its
# search fields.  If multiple matches exist, #{App}
# will let you choose which version to install.

\033[1m#{App} install rspec\033[0m


# List all installed bundles

\033[1m#{App} list\033[0m


# Uninstall bundle matching 'json'.  If you type in a
# fragment and there are multiple installed bundles that begin
# with that fragment, #{App} will let you choose which version
# you'd like to destroy

\033[1m#{App} uninstall json\033[0m
  
# Update bundle named 'json' if we can find it in your installation records.
# If we can't find a record, we will attempt to run the normal installation routine
# for the bundle name you entered.  If #{App} has degenerate records, you will still
# have the option to overwrite the existing version during the normal install process.

\033[1m#{App} update json\033[0m


# Tell textmate (if it's open) to reload its bundle information,
# and update menus & controls accordingly

\033[1m#{App} reload\033[0m


# Print this help information

\033[1m#{App} help\033[0m



eos