Class: Textmate::Source::Macromates
- Inherits:
-
Base
- Object
- Base
- Textmate::Source::Macromates
show all
- Defined in:
- lib/textmate/source/macromates.rb
Instance Method Summary
collapse
Methods inherited from Base
#<=>, #around_install, #clear_existing, #local_path_for, #name, name
Instance Method Details
#bundles(search = '') ⇒ Object
5
6
7
8
9
|
# File 'lib/textmate/source/macromates.rb', line 5
def bundles(search = '')
repositories.map do |repository|
repository_bundles(repository, search)
end.flatten.uniq.sort
end
|
#install(bundle) ⇒ Object
11
12
13
14
15
16
|
# File 'lib/textmate/source/macromates.rb', line 11
def install(bundle)
repository = repositories.detect do |repository|
repository_bundles(repository, bundle, :exact)
end
install_bundle_from_svn("#{repository}/#{bundle}.tmbundle", bundle)
end
|