keel 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/generators/keel/templates/gc-controller.yml.erb +1 -1
- data/lib/generators/keel/templates/gcloud.yml +1 -1
- data/lib/keel/gcloud.rb +0 -1
- data/lib/keel/{gcloud/notifier → notifier}/base.rb +2 -2
- data/lib/keel/{gcloud/notifier → notifier}/new_relic.rb +1 -1
- data/lib/keel/{gcloud/notifier.rb → notifier.rb} +0 -0
- data/lib/keel/version.rb +1 -1
- data/lib/keel.rb +1 -0
- data/lib/tasks/keel.rake +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae5771e28c49313b1b90d71a280c481c0268de00
|
4
|
+
data.tar.gz: 85969874e3bd3d217946c1a62058b91ffb2b09ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a580124ef47f0ddc0f9cc723dcea47f273020d606d60a60402fa6488ce062ba8a1c264c710f801f5a51d300fe56119b8214dfadae01a4aeb50680f81705220c0
|
7
|
+
data.tar.gz: dca6f0cfc23daf0c9dc4aa56d62189647b4bd66ad7f9b7cac798ea136a47533bd8b6858da180854a2a4e0b88c8a330054da61a143795a410cb2b1360a2e67165
|
data/README.md
CHANGED
@@ -24,6 +24,12 @@ Or install it yourself as:
|
|
24
24
|
$ gem install keel
|
25
25
|
```
|
26
26
|
|
27
|
+
## History
|
28
|
+
|
29
|
+
This gem was extracted out of an existing app, so we've tried to generalize it as much as possible. That said, there might be areas that requirement improvement, PRs are welcomed.
|
30
|
+
|
31
|
+
Another OSS project to look at is [Grand Central](https://github.com/o19s/grand_central) which is a tool for dynamic deployment and cleanup of containers on Kubernetes.
|
32
|
+
|
27
33
|
## Usage
|
28
34
|
|
29
35
|
First, run:
|
data/lib/keel/gcloud.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
class NotImplemented < StandardError; end
|
2
2
|
|
3
|
-
module Keel
|
3
|
+
module Keel
|
4
4
|
module Notifier
|
5
5
|
#
|
6
6
|
# Base class to be inherited for notifiers that are used to send any
|
@@ -13,7 +13,7 @@ module Keel::GCloud
|
|
13
13
|
@env = env
|
14
14
|
@sha = sha
|
15
15
|
|
16
|
-
@cli = Cli.new
|
16
|
+
@cli = GCloud::Cli.new
|
17
17
|
|
18
18
|
set_user
|
19
19
|
end
|
File without changes
|
data/lib/keel/version.rb
CHANGED
data/lib/keel.rb
CHANGED
data/lib/tasks/keel.rake
CHANGED
@@ -41,7 +41,7 @@ namespace :keel do
|
|
41
41
|
|
42
42
|
# We can get away with first since it is a single container pod
|
43
43
|
container = rc.containers.first
|
44
|
-
container['image'] = "
|
44
|
+
container['image'] = "#{config.container_app_image_path}:#{deploy_sha}"
|
45
45
|
rc.increment_replica_count
|
46
46
|
rc.update
|
47
47
|
|
@@ -83,7 +83,7 @@ namespace :keel do
|
|
83
83
|
rc.update
|
84
84
|
|
85
85
|
prompter.print 'Notifying NewRelic of deployment', :info
|
86
|
-
notifier = Keel::
|
86
|
+
notifier = Keel::Notifier::NewRelic.new env: deploy_env, sha: deploy_sha
|
87
87
|
notifier.notify
|
88
88
|
|
89
89
|
prompter.print 'Deployment complete', :success
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: keel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Youssef Chaker
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -113,10 +113,10 @@ files:
|
|
113
113
|
- lib/keel/gcloud/kubernetes/namespace.rb
|
114
114
|
- lib/keel/gcloud/kubernetes/pod.rb
|
115
115
|
- lib/keel/gcloud/kubernetes/replication_controller.rb
|
116
|
-
- lib/keel/gcloud/notifier.rb
|
117
|
-
- lib/keel/gcloud/notifier/base.rb
|
118
|
-
- lib/keel/gcloud/notifier/new_relic.rb
|
119
116
|
- lib/keel/gcloud/prompter.rb
|
117
|
+
- lib/keel/notifier.rb
|
118
|
+
- lib/keel/notifier/base.rb
|
119
|
+
- lib/keel/notifier/new_relic.rb
|
120
120
|
- lib/keel/railtie.rb
|
121
121
|
- lib/keel/version.rb
|
122
122
|
- lib/tasks/keel.rake
|