1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
require "guard/group"
require "guard/plugin_util"
require "guard/internals/session"
require "guard/internals/scope"
require "guard/runner"
module Guard
module Internals
class State
# Minimal setup for non-interactive commands (list, init, show, etc.)
def initialize(cmdline_opts)
@session = Session.new(cmdline_opts)
@scope = Scope.new
# NOTE: must be set before anything calls Guard::UI.debug
Debugging.start if session.debug?
end
attr_reader :scope
attr_reader :session
end
end
end
|