unlight-cli 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.overcommit.yml +37 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +69 -0
- data/README.md +39 -0
- data/Rakefile +8 -0
- data/bin/console +18 -0
- data/bin/setup +8 -0
- data/exe/unlight +7 -0
- data/lib/unlight_cli.rb +13 -0
- data/lib/unlight_cli/app.rb +23 -0
- data/lib/unlight_cli/commands/initialize.rb +64 -0
- data/lib/unlight_cli/commands/start.rb +21 -0
- data/lib/unlight_cli/commands/stop.rb +21 -0
- data/lib/unlight_cli/commands/update.rb +31 -0
- data/lib/unlight_cli/version.rb +5 -0
- data/templates/docker-compose.yml.erb +96 -0
- data/templates/env.erb +11 -0
- data/unlight-cli.gemspec +41 -0
- metadata +165 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5b7958199078b3132e04c149b9bc8e9c53b59679249c91d881d978e060c4722f
|
4
|
+
data.tar.gz: 3e1472ec9e544cc669eb696ec719b2973a38bbe38137b1cdbe550f3a2f686182
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: cf8d0d6354aa5e1b21b22a1e459b8ac62f63b6e1667867fc3afd15652d07249a03c16a40327b1db94514a8dfd8c5677e187c4621db7fd284bf9191b092d88fec
|
7
|
+
data.tar.gz: f894a4b61be5594bc99e62241724b70bd94f46f0c0e0341729ef5a5fbaf15fe7cb5259a474b218bdc6e43441d7e2aaf33d21248ef317714de4e389b00f76fba9
|
data/.gitignore
ADDED
data/.overcommit.yml
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# Use this file to configure the Overcommit hooks you wish to use. This will
|
2
|
+
# extend the default configuration defined in:
|
3
|
+
# https://github.com/sds/overcommit/blob/master/config/default.yml
|
4
|
+
#
|
5
|
+
# At the topmost level of this YAML file is a key representing type of hook
|
6
|
+
# being run (e.g. pre-commit, commit-msg, etc.). Within each type you can
|
7
|
+
# customize each hook, such as whether to only run it on certain files (via
|
8
|
+
# `include`), whether to only display output if it fails (via `quiet`), etc.
|
9
|
+
#
|
10
|
+
# For a complete list of hooks, see:
|
11
|
+
# https://github.com/sds/overcommit/tree/master/lib/overcommit/hook
|
12
|
+
#
|
13
|
+
# For a complete list of options that you can use to customize hooks, see:
|
14
|
+
# https://github.com/sds/overcommit#configuration
|
15
|
+
#
|
16
|
+
# Uncomment the following lines to make the configuration take effect.
|
17
|
+
|
18
|
+
PreCommit:
|
19
|
+
AuthorName:
|
20
|
+
enabled: false
|
21
|
+
|
22
|
+
RuboCop:
|
23
|
+
enabled: true
|
24
|
+
on_warn: fail # Treat all warnings as failures
|
25
|
+
|
26
|
+
BundleAudit:
|
27
|
+
enabled: true
|
28
|
+
|
29
|
+
TrailingWhitespace:
|
30
|
+
enabled: true
|
31
|
+
|
32
|
+
PostCheckout:
|
33
|
+
ALL: # Special hook name that customizes all hooks of this type
|
34
|
+
quiet: true # Change all post-checkout hooks to only display output on failure
|
35
|
+
|
36
|
+
IndexTags:
|
37
|
+
enabled: true # Generate a tags file with `ctags` each time HEAD changes
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at elct9620@frost.tw. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
unlight-cli (0.1.0)
|
5
|
+
thor (>= 0.18)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
ast (2.4.0)
|
11
|
+
bundler-audit (0.6.1)
|
12
|
+
bundler (>= 1.2.0, < 3)
|
13
|
+
thor (~> 0.18)
|
14
|
+
childprocess (3.0.0)
|
15
|
+
coderay (1.1.2)
|
16
|
+
diff-lcs (1.3)
|
17
|
+
iniparse (1.4.4)
|
18
|
+
jaro_winkler (1.5.4)
|
19
|
+
method_source (0.9.2)
|
20
|
+
overcommit (0.52.1)
|
21
|
+
childprocess (>= 0.6.3, < 4)
|
22
|
+
iniparse (~> 1.4)
|
23
|
+
parallel (1.19.1)
|
24
|
+
parser (2.7.0.2)
|
25
|
+
ast (~> 2.4.0)
|
26
|
+
pry (0.12.2)
|
27
|
+
coderay (~> 1.1.0)
|
28
|
+
method_source (~> 0.9.0)
|
29
|
+
rainbow (3.0.0)
|
30
|
+
rake (10.5.0)
|
31
|
+
rspec (3.9.0)
|
32
|
+
rspec-core (~> 3.9.0)
|
33
|
+
rspec-expectations (~> 3.9.0)
|
34
|
+
rspec-mocks (~> 3.9.0)
|
35
|
+
rspec-core (3.9.1)
|
36
|
+
rspec-support (~> 3.9.1)
|
37
|
+
rspec-expectations (3.9.0)
|
38
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
39
|
+
rspec-support (~> 3.9.0)
|
40
|
+
rspec-mocks (3.9.1)
|
41
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
42
|
+
rspec-support (~> 3.9.0)
|
43
|
+
rspec-support (3.9.2)
|
44
|
+
rubocop (0.79.0)
|
45
|
+
jaro_winkler (~> 1.5.1)
|
46
|
+
parallel (~> 1.10)
|
47
|
+
parser (>= 2.7.0.1)
|
48
|
+
rainbow (>= 2.2.2, < 4.0)
|
49
|
+
ruby-progressbar (~> 1.7)
|
50
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
51
|
+
ruby-progressbar (1.10.1)
|
52
|
+
thor (0.20.3)
|
53
|
+
unicode-display_width (1.6.1)
|
54
|
+
|
55
|
+
PLATFORMS
|
56
|
+
ruby
|
57
|
+
|
58
|
+
DEPENDENCIES
|
59
|
+
bundler (~> 2.0)
|
60
|
+
bundler-audit (~> 0.6.1)
|
61
|
+
overcommit (~> 0.52.0)
|
62
|
+
pry
|
63
|
+
rake (~> 10.0)
|
64
|
+
rspec (~> 3.0)
|
65
|
+
rubocop (~> 0.79.0)
|
66
|
+
unlight-cli!
|
67
|
+
|
68
|
+
BUNDLED WITH
|
69
|
+
2.0.2
|
data/README.md
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# UnlightCLI
|
2
|
+
|
3
|
+
The command line tool for OpenUnlight to setup Unlight Server.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
$ gem install unlight-cli
|
8
|
+
|
9
|
+
## Usage
|
10
|
+
|
11
|
+
### Initialize Project
|
12
|
+
|
13
|
+
$ unlight init [name]
|
14
|
+
|
15
|
+
### Start Server
|
16
|
+
|
17
|
+
$ unlight start
|
18
|
+
|
19
|
+
### Stop Server
|
20
|
+
|
21
|
+
$ unlight stop
|
22
|
+
|
23
|
+
### Update Data
|
24
|
+
|
25
|
+
$ unlight update
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/open-unlight/unlight-cli. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
## Code of Conduct
|
38
|
+
|
39
|
+
Everyone interacting in the UnlightCLI project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/open-unlight/unlight-cli/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'unlight_cli'
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
# require "pry"
|
12
|
+
# Pry.start
|
13
|
+
|
14
|
+
# require 'irb'
|
15
|
+
# IRB.start(__FILE__)
|
16
|
+
|
17
|
+
require "pry"
|
18
|
+
Pry.start
|
data/bin/setup
ADDED
data/exe/unlight
ADDED
data/lib/unlight_cli.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'thor'
|
4
|
+
require 'thor/group'
|
5
|
+
|
6
|
+
require 'unlight_cli/commands/initialize'
|
7
|
+
require 'unlight_cli/commands/update'
|
8
|
+
require 'unlight_cli/commands/start'
|
9
|
+
require 'unlight_cli/commands/stop'
|
10
|
+
|
11
|
+
module UnlightCLI
|
12
|
+
# The main CLI command
|
13
|
+
#
|
14
|
+
# @since 0.1.0
|
15
|
+
# @api private
|
16
|
+
class App < Thor
|
17
|
+
register Commands::Initialize,
|
18
|
+
'init', 'init', 'Initialize OpenUnlight Server'
|
19
|
+
register Commands::Update, 'update', 'update', 'Update server'
|
20
|
+
register Commands::Start, 'start', 'start', 'Start server'
|
21
|
+
register Commands::Stop, 'stop', 'stop', 'Stop server'
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'securerandom'
|
4
|
+
|
5
|
+
module UnlightCLI
|
6
|
+
module Commands
|
7
|
+
# Create OpenUnlight Project
|
8
|
+
#
|
9
|
+
# @since 0.1.0
|
10
|
+
# @api private
|
11
|
+
class Initialize < Thor::Group
|
12
|
+
include Thor::Actions
|
13
|
+
|
14
|
+
argument :name, default: 'OpenUnlight'
|
15
|
+
desc 'Initialize OpenUnlight server'
|
16
|
+
|
17
|
+
# @since 0.1.0
|
18
|
+
# @api private
|
19
|
+
def self.source_root
|
20
|
+
UnlightCLI.root
|
21
|
+
end
|
22
|
+
|
23
|
+
# Create default project files
|
24
|
+
#
|
25
|
+
# @since 0.1.0
|
26
|
+
# @api private
|
27
|
+
def create_project
|
28
|
+
template('templates/env.erb', "#{name}/.env")
|
29
|
+
template('templates/docker-compose.yml.erb',
|
30
|
+
"#{name}/docker-compose.yml")
|
31
|
+
end
|
32
|
+
|
33
|
+
# Initialize Load
|
34
|
+
#
|
35
|
+
# @since 0.1.0
|
36
|
+
# @api private
|
37
|
+
def initialize_load
|
38
|
+
Dir.chdir name do
|
39
|
+
# TODO: Improve invoke action
|
40
|
+
invoke 'unlight_c_l_i:commands:update'
|
41
|
+
invoke 'unlight_c_l_i:commands:start'
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
# Setup finished message
|
46
|
+
#
|
47
|
+
# @since 0.1.0
|
48
|
+
# @api private
|
49
|
+
def messages
|
50
|
+
puts "The database root password is #{database_password}"
|
51
|
+
end
|
52
|
+
|
53
|
+
private
|
54
|
+
|
55
|
+
# Generated Database Password
|
56
|
+
#
|
57
|
+
# @since 0.1.0
|
58
|
+
# @api private
|
59
|
+
def database_password
|
60
|
+
@database_password ||= SecureRandom.base64(24)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module UnlightCLI
|
4
|
+
module Commands
|
5
|
+
# Start server
|
6
|
+
#
|
7
|
+
# @since 0.1.0
|
8
|
+
# @api private
|
9
|
+
class Start < Thor::Group
|
10
|
+
desc 'Start server'
|
11
|
+
|
12
|
+
# Start server as daemon
|
13
|
+
#
|
14
|
+
# @since 0.1.0
|
15
|
+
# @api private
|
16
|
+
def start
|
17
|
+
system 'docker-compose up -d'
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module UnlightCLI
|
4
|
+
module Commands
|
5
|
+
# Stop server
|
6
|
+
#
|
7
|
+
# @since 0.1.0
|
8
|
+
# @api private
|
9
|
+
class Stop < Thor::Group
|
10
|
+
desc 'Stop server'
|
11
|
+
|
12
|
+
# Stop server
|
13
|
+
#
|
14
|
+
# @since 0.1.0
|
15
|
+
# @api private
|
16
|
+
def start
|
17
|
+
system 'docker-compose stop'
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module UnlightCLI
|
4
|
+
module Commands
|
5
|
+
# Update game data
|
6
|
+
#
|
7
|
+
# @since 0.1.0
|
8
|
+
# @api private
|
9
|
+
class Update < Thor::Group
|
10
|
+
desc 'Update server data'
|
11
|
+
|
12
|
+
# Ensure server is stopped
|
13
|
+
#
|
14
|
+
# @since 0.1.0
|
15
|
+
# @api private
|
16
|
+
def stop_server
|
17
|
+
system 'docker-compose stop'
|
18
|
+
end
|
19
|
+
|
20
|
+
# Start reload database
|
21
|
+
#
|
22
|
+
# @since 0.1.0
|
23
|
+
# @api private
|
24
|
+
def update
|
25
|
+
# TODO: Prevent use `auth_server` as default
|
26
|
+
system 'docker-compose run auth_server update'
|
27
|
+
system 'docker-compose rm -f auth_server'
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
version: '3.4'
|
2
|
+
x-logging: &logging
|
3
|
+
logging:
|
4
|
+
driver: json-file
|
5
|
+
options:
|
6
|
+
mode: non-blocking
|
7
|
+
tag: "{{.Name}}"
|
8
|
+
x-image: &image
|
9
|
+
image: openunlight/legacy-server:latest
|
10
|
+
restart: unless-stopped
|
11
|
+
env_file:
|
12
|
+
- .env
|
13
|
+
depends_on:
|
14
|
+
- memcached
|
15
|
+
- db
|
16
|
+
<<: *logging
|
17
|
+
services:
|
18
|
+
memcached:
|
19
|
+
restart: unless-stopped
|
20
|
+
image: memcached:1.5.16-alpine
|
21
|
+
db:
|
22
|
+
image: mysql:5.7
|
23
|
+
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
24
|
+
restart: unless-stopped
|
25
|
+
env_file:
|
26
|
+
- .env
|
27
|
+
xmlsocket:
|
28
|
+
<<: *image
|
29
|
+
command: server xmlsocket
|
30
|
+
ports:
|
31
|
+
- '11999:11999' # XMLSocket for Flash Policy
|
32
|
+
auth_server:
|
33
|
+
<<: *image
|
34
|
+
command: server authentication 12001
|
35
|
+
ports:
|
36
|
+
- '12001:12001'
|
37
|
+
lobby_server:
|
38
|
+
<<: *image
|
39
|
+
command: server lobby 12002
|
40
|
+
ports:
|
41
|
+
- '12002:12002'
|
42
|
+
quest_server:
|
43
|
+
<<: *image
|
44
|
+
command: server quest 12005
|
45
|
+
ports:
|
46
|
+
- '12005:12005'
|
47
|
+
game_server:
|
48
|
+
<<: *image
|
49
|
+
command: server game 12008
|
50
|
+
ports:
|
51
|
+
- '12008:12008'
|
52
|
+
match_server:
|
53
|
+
<<: *image
|
54
|
+
command: server matching 12018
|
55
|
+
ports:
|
56
|
+
- '12018:12018'
|
57
|
+
chat_server:
|
58
|
+
<<: *image
|
59
|
+
command: server chat 12012
|
60
|
+
ports:
|
61
|
+
- '12012:12012'
|
62
|
+
global_chat_server:
|
63
|
+
<<: *image
|
64
|
+
command: server global_chat 12020
|
65
|
+
ports:
|
66
|
+
- '12020:12020'
|
67
|
+
data_server:
|
68
|
+
<<: *image
|
69
|
+
command: server data_lobby 12032
|
70
|
+
ports:
|
71
|
+
- '12032:12032'
|
72
|
+
raid_server:
|
73
|
+
<<: *image
|
74
|
+
command: server raid 12050
|
75
|
+
ports:
|
76
|
+
- '12050:12050'
|
77
|
+
raid_rank_server:
|
78
|
+
<<: *image
|
79
|
+
command: server raid_rank 12070
|
80
|
+
ports:
|
81
|
+
- '12070:12070'
|
82
|
+
watch_server:
|
83
|
+
<<: *image
|
84
|
+
command: server watch 12080
|
85
|
+
ports:
|
86
|
+
- '12080:12080'
|
87
|
+
raid_chat_server:
|
88
|
+
<<: *image
|
89
|
+
command: server raid_chat 12090
|
90
|
+
ports:
|
91
|
+
- '12090:12090'
|
92
|
+
raid_data_server:
|
93
|
+
<<: *image
|
94
|
+
command: server raid_data 12100
|
95
|
+
ports:
|
96
|
+
- '12100:12100'
|
data/templates/env.erb
ADDED
data/unlight-cli.gemspec
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'unlight_cli/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = 'unlight-cli'
|
9
|
+
spec.version = UnlightCLI::VERSION
|
10
|
+
spec.authors = ['蒼時弦也']
|
11
|
+
spec.email = ['aotoki@unlight.com.tw']
|
12
|
+
|
13
|
+
spec.summary = 'The OpenUnlight command line tool'
|
14
|
+
spec.description = 'The OpenUnlight command line tool'
|
15
|
+
spec.homepage = 'https://github.com/open-unlight/unlight-cli'
|
16
|
+
|
17
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
18
|
+
spec.metadata['source_code_uri'] = 'https://github.com/open-unlight/unlight-cli'
|
19
|
+
# spec.metadata["changelog_uri"] = "TODO"
|
20
|
+
|
21
|
+
# Specify which files should be added to the gem when it is released.
|
22
|
+
# The `git ls-files -z` loads the files in
|
23
|
+
# the RubyGem that have been added into git.
|
24
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
25
|
+
`git ls-files -z`
|
26
|
+
.split("\x0")
|
27
|
+
.reject { |f| f.match(%r{^(test|spec|features)/}) }
|
28
|
+
end
|
29
|
+
spec.bindir = 'exe'
|
30
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
|
+
spec.require_paths = ['lib']
|
32
|
+
|
33
|
+
spec.add_dependency 'thor', '>= 0.18'
|
34
|
+
|
35
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
36
|
+
spec.add_development_dependency 'bundler-audit', '~> 0.6.1'
|
37
|
+
spec.add_development_dependency 'overcommit', '~> 0.52.0'
|
38
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
39
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
40
|
+
spec.add_development_dependency 'rubocop', '~> 0.79.0'
|
41
|
+
end
|
metadata
ADDED
@@ -0,0 +1,165 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: unlight-cli
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- 蒼時弦也
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-01-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.18'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.18'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler-audit
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.6.1
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.6.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: overcommit
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.52.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.52.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '10.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '10.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.79.0
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.79.0
|
111
|
+
description: The OpenUnlight command line tool
|
112
|
+
email:
|
113
|
+
- aotoki@unlight.com.tw
|
114
|
+
executables:
|
115
|
+
- unlight
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- ".gitignore"
|
120
|
+
- ".overcommit.yml"
|
121
|
+
- ".rspec"
|
122
|
+
- ".travis.yml"
|
123
|
+
- CODE_OF_CONDUCT.md
|
124
|
+
- Gemfile
|
125
|
+
- Gemfile.lock
|
126
|
+
- README.md
|
127
|
+
- Rakefile
|
128
|
+
- bin/console
|
129
|
+
- bin/setup
|
130
|
+
- exe/unlight
|
131
|
+
- lib/unlight_cli.rb
|
132
|
+
- lib/unlight_cli/app.rb
|
133
|
+
- lib/unlight_cli/commands/initialize.rb
|
134
|
+
- lib/unlight_cli/commands/start.rb
|
135
|
+
- lib/unlight_cli/commands/stop.rb
|
136
|
+
- lib/unlight_cli/commands/update.rb
|
137
|
+
- lib/unlight_cli/version.rb
|
138
|
+
- templates/docker-compose.yml.erb
|
139
|
+
- templates/env.erb
|
140
|
+
- unlight-cli.gemspec
|
141
|
+
homepage: https://github.com/open-unlight/unlight-cli
|
142
|
+
licenses: []
|
143
|
+
metadata:
|
144
|
+
homepage_uri: https://github.com/open-unlight/unlight-cli
|
145
|
+
source_code_uri: https://github.com/open-unlight/unlight-cli
|
146
|
+
post_install_message:
|
147
|
+
rdoc_options: []
|
148
|
+
require_paths:
|
149
|
+
- lib
|
150
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
155
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
requirements: []
|
161
|
+
rubygems_version: 3.0.3
|
162
|
+
signing_key:
|
163
|
+
specification_version: 4
|
164
|
+
summary: The OpenUnlight command line tool
|
165
|
+
test_files: []
|