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.
- data/lib/capistrano-karaf/core.rb +1 -1
- data/lib/capistrano-karaf/install.rb +3 -2
- metadata +1 -1
@@ -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
|