summaryrefslogtreecommitdiff
path: root/new/bin/server.rb
diff options
context:
space:
mode:
authormms <git@sapka.me>2025-01-08 21:24:33 +0100
committermms <git@sapka.me>2025-01-08 21:24:33 +0100
commit4004a55b0e324c35cbc7d58b831e49efd484ab93 (patch)
tree3ff4c68c28165b6d08c1a49532e8421193433d65 /new/bin/server.rb
parent2781360c7c25404c5a1fd03ed3472d43367ed8c6 (diff)
feat: rubocop
Diffstat (limited to 'new/bin/server.rb')
-rwxr-xr-xnew/bin/server.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/new/bin/server.rb b/new/bin/server.rb
index 8133623a..d1e85ddd 100755
--- a/new/bin/server.rb
+++ b/new/bin/server.rb
@@ -1,31 +1,31 @@
-require "launchy"
+# frozen_string_literal: true
-require_relative "../lib/crys"
-require_relative "mixins/splash.rb"
+require 'launchy'
+require_relative '../lib/crys'
+require_relative 'mixins/splash'
module Crys
class ServerRunner
-
include Splash
-
+
def initialize(server_class:, root:, section:)
@root = File.expand_path root
@server = server_class.new(root: root)
@section = section
end
- def serve
- puts ""
- print_splash
- puts "Hello mms to \e[1m" + section + "\e[22m"
- puts "Serving from: " + root
- puts ""
- server.start
+ def serve
+ puts ''
+ print_splash
+ puts "Hello mms to \e[1m#{section}\e[22m"
+ puts "Serving from: #{root}"
+ puts ''
+ server.start
end
private
attr_reader :root, :server, :section
end
-end
+end