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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b6eaebb9c8ca3c0d335c1447a0ead60aa4ae0fa
4
- data.tar.gz: 5069e1a53e464f13a0e2a1baecf66919c510754a
3
+ metadata.gz: ae5771e28c49313b1b90d71a280c481c0268de00
4
+ data.tar.gz: 85969874e3bd3d217946c1a62058b91ffb2b09ff
5
5
  SHA512:
6
- metadata.gz: acb1c9adc1efc8cb292684a73952c543b5a0aa74118d984c8badd06411b5136610986bfd9b6e0dc123762d5dfa762f388ee78fd510fc5ecd1832c5a2ea993eed
7
- data.tar.gz: 86cc49d869b21b9155ade83bb4e2d47bd22a2f6327591264d6972517ba03416d686a70a8159ac5e34231b5260af78d9b4f3faf17dbbb0a2fd69940d37adae2c5
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:
@@ -26,7 +26,7 @@ spec:
26
26
  emptyDir:
27
27
  containers:
28
28
  - name: <%= @params[:app] %>
29
- image: <%= @params[:container_app_image_path] %>
29
+ image: <%= @params[:container_app_image_path] %>:latest
30
30
  ports:
31
31
  - containerPort: 3000
32
32
  resources:
@@ -15,5 +15,5 @@
15
15
  # Add your own, eg.
16
16
  # :production:
17
17
  # :force_ssl: true
18
- # :quepid_ga: UA-XXXXXXXX-X
18
+ # :ga: UA-XXXXXXXX-X
19
19
  # :ga_domain: example.com
data/lib/keel/gcloud.rb CHANGED
@@ -3,5 +3,4 @@ require_relative 'gcloud/cli'
3
3
  require_relative 'gcloud/component'
4
4
  require_relative 'gcloud/config'
5
5
  require_relative 'gcloud/kubernetes'
6
- require_relative 'gcloud/notifier'
7
6
  require_relative 'gcloud/prompter'
@@ -1,6 +1,6 @@
1
1
  class NotImplemented < StandardError; end
2
2
 
3
- module Keel::GCloud
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
@@ -1,4 +1,4 @@
1
- module Keel::GCloud
1
+ module Keel
2
2
  module Notifier
3
3
  #
4
4
  # Notifier for NewRelic that send a deployment notification.
File without changes
data/lib/keel/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Keel
2
- VERSION = "0.1.1" # :nodoc:
2
+ VERSION = "0.1.2" # :nodoc:
3
3
  end
data/lib/keel.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'keel/version'
2
2
  require 'keel/railtie' if defined?(Rails)
3
3
  require 'keel/gcloud'
4
+ require 'keel/notifier'
4
5
 
5
6
  # {file:README.md Usage#usage}
6
7
  module Keel
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'] = "gcr.io/quepid-1051/quails:#{deploy_sha}"
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::GCloud::Notifier::NewRelic.new env: deploy_env, sha: deploy_sha
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.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-15 00:00:00.000000000 Z
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