class TMBundle::BundleName

Constants

REGEX

Attributes

name[R]

Public Class Methods

new(name) click to toggle source
# File lib/tmbundle/bundle_name.rb, line 4
def initialize(name)
  @name = name
end

Public Instance Methods

alt_git_url() click to toggle source
# File lib/tmbundle/bundle_name.rb, line 23
def alt_git_url
  git_url.gsub('.tmbundle', '-tmbundle')
end
git_url() click to toggle source
# File lib/tmbundle/bundle_name.rb, line 19
def git_url
  "https://github.com/#{repo_name}.git"
end
inspect() click to toggle source
# File lib/tmbundle/bundle_name.rb, line 27
def inspect
  "#<TMBundle::BundleName @name=#@name repo_name:#{repo_name} git_url:#{git_url} install_name:#{install_name}>"
end
install_name() click to toggle source
# File lib/tmbundle/bundle_name.rb, line 11
def install_name
  File.basename(name =~ REGEX ? name.gsub(REGEX, '.tmbundle') : name+'.tmbundle')
end
repo_name() click to toggle source
# File lib/tmbundle/bundle_name.rb, line 15
def repo_name
  name =~ REGEX ? name : name+'.tmbundle'
end