Class: Sashimi::SvnRepository
- Inherits:
-
AbstractRepository
- Object
- AbstractRepository
- Sashimi::SvnRepository
- Defined in:
- lib/sashimi/repositories/svn_repository.rb
Instance Attribute Summary
Attributes inherited from AbstractRepository
Instance Method Summary collapse
Methods inherited from AbstractRepository
#about, #add, cache_content, change_dir, change_dir_to_absolute_plugins_dir, change_dir_to_local_repository, #copy_plugin_and_remove_hidden_folders, #files_scheduled_for_add, #files_scheduled_for_remove, find_home, git_url?, guess_version_control_system, #initialize, instantiate_repository, instantiate_repository_by_cache, instantiate_repository_by_url, list, local_repository_path, path_to_rails_app, plugins_dir, plugins_names, #remove_temp_folder, scm_add, scm_command, scm_remove, #scm_type, under_version_control?, #uninstall, update_rails_plugins, update_unversioned_rails_plugins, update_versioned_rails_plugins
Constructor Details
This class inherits a constructor from Sashimi::AbstractRepository
Instance Method Details
#install ⇒ Object
3 4 5 6 7 8 |
# File 'lib/sashimi/repositories/svn_repository.rb', line 3 def install prepare_installation puts plugin.guess_name.titleize + "\n\n" Kernel.system("svn co #{plugin.url} #{plugin.guess_name}") add_to_cache(plugin.to_hash) end |
#update ⇒ Object
10 11 12 13 14 |
# File 'lib/sashimi/repositories/svn_repository.rb', line 10 def update puts plugin.name.titleize + "\n\n" change_dir_to_plugin_path Kernel.system("svn up") end |