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 =
"\n\\033[1m\#{App}\\033[0m is a utility to search for textmate bundles, download and install\nthem, all via a convenient command line interface, much like rubygems.\n\n\nUsage:\n======================================\n\n# Search for bundles containing the word 'webrat' in\n# the title, description, or author's name.\n\n\\033[1m\#{App} search webrat\\033[0m\n\n\n# Search for bundles containing the word 'rspec' OR\n# 'cucumber' OR 'shoulda' in their title, description,\n# or author's name.\n\n\\033[1m\#{App} search rspec cucumber shoulda\\033[0m\n\n\n# Install a bundle containing the word rspec in its\n# search fields. If multiple matches exist, \#{App}\n# will let you choose which version to install.\n\n\\033[1m\#{App} install rspec\\033[0m\n\n\n# List all installed bundles\n\n\\033[1m\#{App} list\\033[0m\n\n\n# Uninstall bundle matching 'json'. If you type in a\n# fragment and there are multiple installed bundles that begin\n# with that fragment, \#{App} will let you choose which version\n# you'd like to destroy\n\n\\033[1m\#{App} uninstall json\\033[0m\n \n# Update bundle named 'json' if we can find it in your installation records.\n# If we can't find a record, we will attempt to run the normal installation routine\n# for the bundle name you entered. If \#{App} has degenerate records, you will still\n# have the option to overwrite the existing version during the normal install process.\n\n\\033[1m\#{App} update json\\033[0m\n\n\n# Tell textmate (if it's open) to reload its bundle information,\n# and update menus & controls accordingly\n\n\\033[1m\#{App} reload\\033[0m\n\n\n# Print this help information\n\n\\033[1m\#{App} help\\033[0m\n\n\n\n"