Class: BundleMate::Application::View
- Inherits:
-
SimpleConsole::View
- Object
- SimpleConsole::View
- BundleMate::Application::View
- Defined in:
- lib/bundle_mate/application.rb
Instance Method Summary collapse
Instance Method Details
#help ⇒ Object
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
# File 'lib/bundle_mate/application.rb', line 127 def help version = BundleMate::VERSION::STRING puts %( Bundlemate Utility #{version} ======================== Bundlemate is a command utility for managing TextMate bundles. Usage: bundlemate command [args] [options] Available commands: list # List available bundles in the remote repository. info [name] # Display the bundle description. install [name] # Install bundle [name]. Use --url to specify the exact URL of a bundle. update [name] # Download the latest updates for bundle [name] uninstall [name] # Remove bundle [name] completely update_all # Update all installed bundles help # Displays this help text Options: -y (--noprompt) # Automatically confirm any prompts. Examples: # installing bundles bundlemate install Ruby bundlemate install --url svn://rubyforge.org/var/svn/rspec/trunk/RSpec.tmbundle bundlemate install --url svn://rubyforge.org/var/svn/rspec/trunk/RSpec.tmbundle --revision 1234 # update an existing bundle bundlemate update Ruby # remove a bundle completely bundlemate uninstall Ruby Note: It is not necessary to reload TextMate's bundles manually, bundlemate will do this automatically when installing/updating/uninstalling a bundle. ) end |
#info ⇒ Object
94 95 96 97 |
# File 'lib/bundle_mate/application.rb', line 94 def info puts "\n** #{@bundle.name} Bundle **" puts "#{@description}\n\n" end |
#install ⇒ Object
99 100 101 102 103 104 105 |
# File 'lib/bundle_mate/application.rb', line 99 def install if @result puts "\n** #{@bundle.name} bundle installed successfully. **" else puts "\n** AN ERROR OCCURRED INSTALLING #{@bundle.name} BUNDLE **" end end |
#list ⇒ Object
88 89 90 91 92 |
# File 'lib/bundle_mate/application.rb', line 88 def list puts "\n** AVAILABLE BUNDLES **\n\n" @bundle_list.each { |name| puts "- #{name}" } puts "\nA total of #{@bundle_list.length} bundles were found." end |
#uninstall ⇒ Object
115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/bundle_mate/application.rb', line 115 def uninstall if @already_uninstalled puts "\n** #{@bundle.name} bundle is not installed. **\n\n" return end if @result puts "\n** #{@bundle.name} bundle uninstalled successfully. **" else puts "\n** #{@bundle.name} could not be uninstalled. **" end end |
#update ⇒ Object
107 108 109 110 111 112 113 |
# File 'lib/bundle_mate/application.rb', line 107 def update if @result puts "\n** #{@bundle.name} bundle updated successfully. **" else puts "\n** AN ERROR OCCURRED UPDATING #{@bundle.name} BUNDLE **" end end |