From 10f1542ac3fcd7e8407d8092c287136e2922af50 Mon Sep 17 00:00:00 2001 From: Michael Kessler Date: Wed, 12 Oct 2011 23:07:06 +0200 Subject: [PATCH] Avoid `Guard is not missing constant ...` exceptions. (fixes #160) --- lib/guard/cli.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/guard/cli.rb b/lib/guard/cli.rb index 95a41a8..de5e735 100644 --- a/lib/guard/cli.rb +++ b/lib/guard/cli.rb @@ -76,7 +76,7 @@ module Guard # @see Guard::DslDescriber.list # def list - Guard::DslDescriber.list(options) + ::Guard::DslDescriber.list(options) end desc 'version', 'Show the Guard version' @@ -87,7 +87,7 @@ module Guard # @see Guard::VERSION # def version - Guard::UI.info "Guard version #{ Guard::VERSION }" + ::Guard::UI.info "Guard version #{ Guard::VERSION }" end desc 'init [GUARD]', 'Generates a Guardfile at the current working directory, or insert the given GUARD to an existing Guardfile' @@ -100,7 +100,7 @@ module Guard # @param [String] guard_name the name of the Guard to initialize # def init(guard_name = nil) - Guard.initialize_template(guard_name) + ::Guard.initialize_template(guard_name) end desc 'show', 'Show all defined Guards and their options' @@ -112,7 +112,7 @@ module Guard # @see Guard::DslDescriber.show # def show - Guard::DslDescriber.show(options) + ::Guard::DslDescriber.show(options) end end