capricorn 0.2.07 → 0.2.08
Sign up to get free protection for your applications and to get access to all the features.
@@ -196,7 +196,12 @@ module Capricorn
|
|
196
196
|
|
197
197
|
# update a gem
|
198
198
|
def gem_update(name, options={})
|
199
|
-
if
|
199
|
+
output = if name == :all
|
200
|
+
gem_cmd('update', options)
|
201
|
+
else
|
202
|
+
gem_cmd('update', name, options)
|
203
|
+
end
|
204
|
+
if !(output =~ /Nothing to update/)
|
200
205
|
gem_refresh
|
201
206
|
true
|
202
207
|
else
|
@@ -54,6 +54,12 @@ module Capricorn
|
|
54
54
|
Capricorn.client(options[:token]).update_server
|
55
55
|
end
|
56
56
|
|
57
|
+
desc "gupdate", 'update the gems'
|
58
|
+
method_options :token => :optional
|
59
|
+
def update
|
60
|
+
Capricorn.client(options[:token]).update_gems
|
61
|
+
end
|
62
|
+
|
57
63
|
desc "version", 'version of the server'
|
58
64
|
method_options :token => :optional
|
59
65
|
def version
|
data/lib/capricorn/server.rb
CHANGED
@@ -14,7 +14,7 @@ module Capricorn
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
-
allow :stop_server, :restart_server, :reload_server, :server_version, :update_server, :install_satellite, :uninstall_satellite, :install_engine, :update_engine, :uninstall_engine, :satellites, :queued_jobs, :cancel_job, :immediate_job, :make_development_satellite
|
17
|
+
allow :stop_server, :restart_server, :reload_server, :server_version, :update_server, :install_satellite, :uninstall_satellite, :install_engine, :update_engine, :uninstall_engine, :satellites, :queued_jobs, :cancel_job, :immediate_job, :make_development_satellite, :update_gems
|
18
18
|
|
19
19
|
class << self
|
20
20
|
undef_method :allow
|