capistrano-karaf 1.6.15 → 1.6.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/capistrano-karaf/core.rb +13 -0
  2. metadata +2 -2
@@ -18,6 +18,7 @@ SSHKit.config.command_map[:list_urls] = 'osgi:list -t 0 -l'
18
18
  SSHKit.config.command_map[:log_set] = 'log:set'
19
19
  SSHKit.config.command_map[:stop] = 'osgi:stop'
20
20
  SSHKit.config.command_map[:start] = 'osgi:start'
21
+ SSHKit.config.command_map[:install] = 'osgi:install -s'
21
22
  SSHKit.config.command_map[:uninstall] = 'osgi:uninstall --force'
22
23
  SSHKit.config.command_map[:startlevel] = 'osgi:start-level'
23
24
 
@@ -165,6 +166,18 @@ module Capistrano_Karaf
165
166
  execute(:stop, bundleId)
166
167
  end
167
168
 
169
+ # Install a bundle
170
+ #
171
+ # uri - the uri for the bundle
172
+ #
173
+ # Examples
174
+ # install "mvn:blaat/blubber"
175
+ #
176
+ # Returns nothing
177
+ def install uri
178
+ execute(:install, uri)
179
+ end
180
+
168
181
  # Uninstall a bundle with the specified bundleId from the karaf server
169
182
  #
170
183
  # bundleId - a number containing the id of the bundle
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-karaf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.15
4
+ version: 1.6.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-06 00:00:00.000000000 Z
12
+ date: 2015-01-13 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: brecht.hoflack@gmail.com