oke 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22a9417b0a86f3aa4bddaeb96a09a838cbfe297e25a732f4451b23a9a501129d
4
- data.tar.gz: 1606029302bc841481060add153f75da3c128761793009821cbd3a3061b3ac0a
3
+ metadata.gz: 595727f43e19d16fb380f54368b005de5e63a62e03e53b0922ff9992768c504d
4
+ data.tar.gz: 898876c48540ebc87f02557341f3c32c70d8aae5bc83c734334530bfe3584419
5
5
  SHA512:
6
- metadata.gz: 73dff0a23642e6c48990bf9d633b780832a7ddeb33130b46a3907b4560f202facf7291aff27c924935b11ad80fba381f8511d783da6428a7c904b0843a7e6d0f
7
- data.tar.gz: 8d4f0666f4ccf243b12aaa57d57f642e29362dbc3d53a08e155d111a0f6c1e936ef7e5be9dad8c72e8df1d1f19dd51490c9bacbb3289b48dc10ff12d906ddfd0
6
+ metadata.gz: 347a82e67361fdb6a434f10dae7b0a4692a1b319cad582751a8d8078b0144ddcf0741a3e08041026b3cb0385aaf8e6b7117979158062a56f29131d9f42a9e607
7
+ data.tar.gz: 3a59a27e74896d9d3af3c99725af1dee2874130d2f142aee1cc75ca3eb3c5ba1e3ee963152697189043c2559c45a8a0a5885f6cf72d52070c7b0294888353f27
data/Gemfile.lock CHANGED
@@ -1,11 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oke (0.1.0)
4
+ oke (0.1.1)
5
+ colorize (~> 0.8)
6
+ thor (~> 0.20)
5
7
 
6
8
  GEM
7
9
  remote: https://rubygems.org/
8
10
  specs:
11
+ colorize (0.8.1)
9
12
  diff-lcs (1.3)
10
13
  rake (10.5.0)
11
14
  rspec (3.8.0)
@@ -21,6 +24,7 @@ GEM
21
24
  diff-lcs (>= 1.2.0, < 2.0)
22
25
  rspec-support (~> 3.8.0)
23
26
  rspec-support (3.8.0)
27
+ thor (0.20.0)
24
28
 
25
29
  PLATFORMS
26
30
  ruby
File without changes
data/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  # Oke
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/oke`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Oke is a tool to help you put your Ruby Application into a container, and then to deploy it to a Kubernetes Cluster.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ ## Fun Fact
6
+
7
+ 桶 (Oke) is a Japanese word that describes a tub, barrel or container.
6
8
 
7
9
  ## Installation
8
10
 
@@ -20,9 +22,9 @@ Or install it yourself as:
20
22
 
21
23
  $ gem install oke
22
24
 
23
- ## Usage
25
+ To get started with oke, you can run in order to create the config files that the tool uses.
24
26
 
25
- TODO: Write usage instructions here
27
+ $ oke init
26
28
 
27
29
  ## Development
28
30
 
@@ -32,12 +34,12 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
34
 
33
35
  ## Contributing
34
36
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/oke. 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.
37
+ Bug reports and pull requests are welcome on GitHub at https://github.com/errm/oke.
36
38
 
37
39
  ## License
38
40
 
39
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
41
+ The gem is available as open source under the terms of the [Apache License, Version 2.0](https://opensource.org/licenses/Apache-2.0).
40
42
 
41
43
  ## Code of Conduct
42
44
 
43
- Everyone interacting in the Oke project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/oke/blob/master/CODE_OF_CONDUCT.md).
45
+ Everyone interacting in the Oke project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/errm/oke/blob/master/CODE_OF_CONDUCT.md).
data/exe/oke ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "oke/cli"
4
+
5
+ Oke::CLI.start(ARGV)
data/lib/oke/cli.rb ADDED
@@ -0,0 +1,22 @@
1
+ require "thor"
2
+ require "colorize"
3
+
4
+ module Oke
5
+ class CLI < Thor
6
+ desc "init", "prepare your application to run in a container"
7
+ def init
8
+ puts "Detected Rails Application 🛤️"
9
+ puts ""
10
+ puts "Preparing config files 📝"
11
+ create "config/oke"
12
+ create "config/oke/processes.rb"
13
+ create "config/oke/environments.rb"
14
+ end
15
+
16
+ no_commands do
17
+ def create(filename)
18
+ puts " create ".colorize(:green) + filename
19
+ end
20
+ end
21
+ end
22
+ end
data/lib/oke/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Oke
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/oke.gemspec CHANGED
@@ -23,6 +23,8 @@ Gem::Specification.new do |spec|
23
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
24
  spec.require_paths = ["lib"]
25
25
 
26
+ spec.add_dependency "thor", "~> 0.20"
27
+ spec.add_dependency "colorize", "~> 0.8"
26
28
  spec.add_development_dependency "bundler", "~> 1.16"
27
29
  spec.add_development_dependency "rake", "~> 10.0"
28
30
  spec.add_development_dependency "rspec", "~> 3.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oke
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ed Robinson
@@ -10,6 +10,34 @@ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2018-10-17 00:00:00.000000000 Z
12
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.20'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.20'
27
+ - !ruby/object:Gem::Dependency
28
+ name: colorize
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.8'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.8'
13
41
  - !ruby/object:Gem::Dependency
14
42
  name: bundler
15
43
  requirement: !ruby/object:Gem::Requirement
@@ -56,7 +84,8 @@ description: Oke is a tool to make it simple to build and deploy applications wr
56
84
  in Ruby
57
85
  email:
58
86
  - edward-robinson@cookpad.com
59
- executables: []
87
+ executables:
88
+ - oke
60
89
  extensions: []
61
90
  extra_rdoc_files: []
62
91
  files:
@@ -66,12 +95,14 @@ files:
66
95
  - CODE_OF_CONDUCT.md
67
96
  - Gemfile
68
97
  - Gemfile.lock
69
- - LICENSE.txt
98
+ - LICENSE
70
99
  - README.md
71
100
  - Rakefile
72
101
  - bin/console
73
102
  - bin/setup
103
+ - exe/oke
74
104
  - lib/oke.rb
105
+ - lib/oke/cli.rb
75
106
  - lib/oke/version.rb
76
107
  - oke.gemspec
77
108
  homepage: https://github.com/errm/oke