Skip to content

Commit 8eb33bb

Browse files
author
Artur M. Ostręga
committed
implement server command
1 parent 2952bff commit 8eb33bb

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
source 'https://rubygems.org'
22

3+
gem 'opal', github: 'opal/opal'
4+
gem 'yeah-web', github: 'yeahrb/yeah-web'
5+
36
gemspec

bin/yeah

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ command = ARGV.shift
44

55
case command
66

7-
when 'run'
8-
puts "todo"
7+
when 'server'
8+
require 'yeah-web'
9+
Yeah::Web::Server.new
910

1011
when 'version'
1112
require 'yeah/version'
@@ -16,6 +17,6 @@ else
1617
puts " yeah <command>"
1718
puts ""
1819
puts "Commands:"
19-
puts " run - Run game project with web runner."
20+
puts " server - Start web server for game project."
2021
puts " version - Print installed version of Yeah."
2122
end

yeah.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ Gem::Specification.new do |s|
1818

1919
s.homepage = 'https://github.com/yeahrb/yeah'
2020
s.license = 'MIT'
21+
22+
s.add_runtime_dependency 'yeah-web', '~> 0.5.0.dev'
2123
end

0 commit comments

Comments
 (0)