lib/appsignal/hooks.rb in appsignal-1.3.1 vs lib/appsignal/hooks.rb in appsignal-1.3.2
- old
+ new
@@ -19,10 +19,14 @@
class Hook
def self.register(name, hook=self)
Appsignal::Hooks.register(name, hook.new)
end
+ def initialize
+ @installed = false
+ end
+
def try_to_install(name)
if dependencies_present? && !installed?
Appsignal.logger.info("Installing #{name} hook")
begin
install
@@ -32,10 +36,10 @@
end
end
end
def installed?
- !! @installed
+ @installed
end
def dependencies_present?
raise NotImplementedError
end