lib/deputy.rb in deputy-0.1.47 vs lib/deputy.rb in deputy-0.1.48
- old
+ new
@@ -97,12 +97,12 @@
puts "sudo ln -s #{executable} /usr/bin/deputy"
end
end
end
- def self.run_plugins
- sleep_random_interval
+ def self.run_plugins(options={})
+ sleep_random_interval unless options[:no_wait]
content = get("/plugins.rb")
exceptions = []
Scout.plugins(content).each do |interval, plugin|
@@ -200,6 +200,6 @@
def self.extract_auth_from_url!(url)
url.sub!(%r{//(.*?):(.*?)@}, '//')
auth = [$1, $2].compact
auth.empty? ? nil : auth
end
-end
\ No newline at end of file
+end