class RuboCop::Daemon::ServerCommand::Base

Public Class Methods

inherited(child) click to toggle source
# File lib/rubocop/daemon/server_command/base.rb, line 16
def self.inherited(child)
  child.prepend Runner
end
new(args, token: '', cwd: Dir.pwd) click to toggle source
# File lib/rubocop/daemon/server_command/base.rb, line 20
def initialize(args, token: '', cwd: Dir.pwd)
  @args = args
  @token = token
  @cwd = cwd
end

Public Instance Methods

run() click to toggle source
# File lib/rubocop/daemon/server_command/base.rb, line 26
def run; end

Private Instance Methods

validate_token!() click to toggle source
# File lib/rubocop/daemon/server_command/base.rb, line 30
def validate_token!
  raise InvalidTokenError unless Cache.token_path.read == @token
end