lib/dotter/cli.rb in dotter_dotfiles-0.3.0 vs lib/dotter/cli.rb in dotter_dotfiles-0.4.0

- old
+ new

@@ -119,9 +119,16 @@ stowed_packages.each do |package| puts "Updating #{package}" package.update end end + desc 'update_public', 'Updates the contents of the public git repository and then pushes it' + def update_public + puts "Updating the public repository." + public_repo = PublicGitRepo.new + puts public_repo.update + public_repo.push + end desc 'import PATH PACKAGE', 'Imports a file or directory into the specified package' def import(path, package) puts "Importing #{path} into package #{package}" filepath = Pathname.new(File.expand_path(path)) packagepath = package_path(package)