checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9afa7b760d8c469895326373688f059141123ddbabaae0ad225df057d1f9b3e9
4
+ data.tar.gz: c2c067e0281b16f9ce1b796c252d91f01880976ea125d0c65b89cb8ad2e221fe
5
+ SHA512:
6
+ metadata.gz: 0b33b35e26e96845894beab021e437eb4ab5afabe7db959a29b9f7884cd635da132eb79f12dd1bef2a692b4f7b471e453d1ec21533fc28a0ba2701b8e03bf56b
7
+ data.tar.gz: a59499b946b4d0ee6b84e026f8c188b728452c0abbea836c6bd2275e25c5f7c1fa58e009883a90f847f4413fa9d567647576537c263340848032b8a924fa7e27
data/bin/promptmc ADDED
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env ruby
2
+ require 'rubygems'
3
+ require 'thor'
4
+
5
+ class PromptMC < Thor
6
+ package_name 'PromptMC'
7
+
8
+ desc 'start', 'Starts PromptMC server'
9
+ def start
10
+ `PROMPTMC_MODE=prod ruby #{File.expand_path File.dirname(__FILE__)}` +
11
+ '/../lib/website.rb'
12
+ end
13
+
14
+ desc 'stop', 'Stops PromptMC server'
15
+ def stop
16
+ `pkill localhost:4567`
17
+ end
18
+ end
19
+
20
+ PromptMC.start
data/lib/public/favicon.ico ADDED
Binary file
data/lib/public/styles.css ADDED
@@ -0,0 +1,4 @@
1
+ body {
2
+ font-family: monospace;
3
+ text-align: center;
4
+ }
data/lib/views/index.haml ADDED
@@ -0,0 +1,10 @@
1
+ !!!
2
+ %html
3
+ %head
4
+ %title PromptMC
5
+ %link(rel="stylesheet" href="styles.css")
6
+ %link(rel="shortcut icon" href="favicon.ico")
7
+ %body
8
+ %h1 PromptMC
9
+ %p
10
+ This is a placeholder.
data/lib/website.rb ADDED
@@ -0,0 +1,10 @@
1
+ require 'optparse'
2
+ require 'rubygems'
3
+ require 'haml'
4
+ require 'sinatra'
5
+
6
+ get '/' do
7
+ haml :index
8
+ end
9
+
10
+ Process.daemon(true) if ENV['PROMPTMC_MODE'] == 'prod'
metadata ADDED
@@ -0,0 +1,112 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: promptmc
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Josh Quail
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-12-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: docker
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: haml
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: sinatra
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: thor
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.20'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.20'
69
+ description: |-
70
+ PromptMC is a Ruby web interface for setting up and managing
71
+ locally hosted Minecraft servers. Once you start the server, you can navigate
72
+ to localhost:4567 to access the console. Note that Docker (running as a
73
+ daemon) is a prerequisite for PromptMC.
74
+ email: josh@madbean.com
75
+ executables:
76
+ - promptmc
77
+ extensions: []
78
+ extra_rdoc_files: []
79
+ files:
80
+ - bin/promptmc
81
+ - lib/public/favicon.ico
82
+ - lib/public/styles.css
83
+ - lib/views/index.haml
84
+ - lib/website.rb
85
+ homepage: https://rubygems.org/gems/promptmc
86
+ licenses:
87
+ - MIT
88
+ metadata:
89
+ source_code_uri: https://github.com/realtable/promptmc
90
+ bug_tracker_uri: https://github.com/realtable/promptmc/issues
91
+ post_install_message:
92
+ rdoc_options: []
93
+ require_paths:
94
+ - lib
95
+ required_ruby_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ requirements:
106
+ - daemonised Docker
107
+ rubyforge_project:
108
+ rubygems_version: 2.7.7
109
+ signing_key:
110
+ specification_version: 4
111
+ summary: A web app for managing localhost Minecraft servers
112
+ test_files: []