Module: VRundler
- Defined in:
- lib/vrundler.rb,
lib/vrundler/bundle.rb,
lib/vrundler/bundles.rb,
lib/vrundler/version.rb,
lib/vrundler/basic_bundle.rb,
lib/vrundler/bundle_group.rb,
lib/vrundler/vim_zip_group.rb,
lib/vrundler/symlink_bundle.rb,
lib/vrundler/vim_zip_bundle.rb,
lib/vrundler/vim_script_group.rb,
lib/vrundler/script_type_group.rb,
lib/vrundler/vim_script_bundle.rb
Defined Under Namespace
Modules: BasicBundle
Classes: Bundle, BundleGroup, Bundles, ScriptTypeGroup, SymlinkBundle, VimScriptBundle, VimScriptGroup, VimZipBundle, VimZipGroup
Constant Summary
collapse
- VERSION =
"0.0.3"
Instance Method Summary
collapse
Instance Method Details
#bundles_dir(path) ⇒ Object
20
21
22
|
# File 'lib/vrundler.rb', line 20
def bundles_dir(path)
Bundles.bundles_dir path
end
|
#github(name, &block) ⇒ Object
24
25
26
|
# File 'lib/vrundler.rb', line 24
def github(name, &block)
group("http://github.com/#{name}/", &block)
end
|
#group(name, &block) ⇒ Object
46
47
48
49
|
# File 'lib/vrundler.rb', line 46
def group(name, &block)
group = BundleGroup.new(name)
group.instance_eval(&block)
end
|
#log(message) ⇒ Object
16
17
18
|
# File 'lib/vrundler.rb', line 16
def log(message)
puts message
end
|
#symlink(destination_folder_key, source_path) {|bundle, Bundles| ... } ⇒ Object
38
39
40
41
42
43
|
# File 'lib/vrundler.rb', line 38
def symlink(destination_folder_key, source_path)
bundle = SymlinkBundle.new(destination_folder_key, source_path)
Bundles << bundle
yield bundle, Bundles if block_given?
bundle
end
|
#vimscripts(&block) ⇒ Object
28
29
30
31
|
# File 'lib/vrundler.rb', line 28
def vimscripts(&block)
vim_script_group = VimScriptGroup.new
vim_script_group.instance_eval(&block) if block
end
|
#vimzips(&block) ⇒ Object
33
34
35
36
|
# File 'lib/vrundler.rb', line 33
def vimzips(&block)
zip_group = VimZipGroup.new
zip_group.instance_eval(&block) if block
end
|