capistrano-karaf 1.6.5 → 1.6.6

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.
@@ -131,7 +131,7 @@ module Capistrano_Karaf
131
131
  r = capture(:startlevel)
132
132
  m = r.match(/Level (\d+)/)
133
133
  if m then
134
- m[0].to_i
134
+ m[1].to_i
135
135
  else
136
136
  raise 'Invalid response from startlevel'
137
137
  end
@@ -77,8 +77,7 @@ module Install
77
77
  def upgrade (projects, args={})
78
78
  args = {:startlevel_before_upgrade => 60}.merge(args)
79
79
  initial_level = startlevel
80
- features = list_features()
81
-
80
+ features = list_features
82
81
  to_uninstall, to_install = calculate_upgrade_actions(projects, features)
83
82
 
84
83
  begin
@@ -102,6 +101,8 @@ module Install
102
101
  trigger_event(f, :after_install_feature)
103
102
  end
104
103
  ensure
104
+ puts "Restoring the level to #{initial_level}"
105
+
105
106
  # restore the runlevel to the level before upgrading
106
107
  startlevel_set initial_level
107
108
  ensure_all_bundles_are_restarted args[:startlevel_before_upgrade], initial_level
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.5
4
+ version: 1.6.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: