Merge remote-tracking branch 'upstream/master' into rubocop-fixes

Conflicts:
	lib/homesick.rb
This commit is contained in:
Nicolas McCurdy
2014-01-21 22:37:48 -05:00
4 changed files with 21 additions and 17 deletions

View File

@@ -20,6 +20,8 @@ class Homesick < Thor
map '-v' => :version
map '--version' => :version
# Retain a mapped version of the symlink command for compatibility.
map 'symlink' => :link
def initialize(args = [], options = {}, config = {})
super
@@ -117,11 +119,11 @@ class Homesick < Thor
end
end
desc 'symlink CASTLE', 'Symlinks all dotfiles from the specified castle'
desc 'link CASTLE', 'Symlinks all dotfiles from the specified castle'
method_option :force,
default: false,
desc: 'Overwrite existing conflicting symlinks without prompting.'
def symlink(name = DEFAULT_CASTLE_NAME)
def link(name = DEFAULT_CASTLE_NAME)
check_castle_existance(name, 'symlink')
inside castle_dir(name) do