pfab 0.8.3 → 0.8.4
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 +4 -4
- data/lib/pfab/cli.rb +9 -0
- data/lib/pfab/version.rb +1 -1
- data/pfab.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b1b24f12b801be0a472d6cae944f363f75e06937a102c5b4f8b6e1f33dc7d261
|
|
4
|
+
data.tar.gz: d9bebd45374d705dd3b2d0d511d080e75147b3528f748aec57782f9ac6f65dc4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3bb2a0bb0257c59abc7e5534b6945c1b951e7e97e1cfa0de0eccad88bb05248fcbbae2c7154b6170c752378f9d2bb3f31d2407a539b31c6d8bf4ecf4585a67c4
|
|
7
|
+
data.tar.gz: 42655c7c481811d9a54194139a3535d0b16e8cd9bde796986c335726c97efec348a9f1692858c73242eef160db474d93910e3d5d9155d1e196ae2cee478b036e
|
data/lib/pfab/cli.rb
CHANGED
|
@@ -186,6 +186,11 @@ module Pfab
|
|
|
186
186
|
def cmd_apply
|
|
187
187
|
set_kube_context
|
|
188
188
|
get_apps.each do |app_name|
|
|
189
|
+
app = @apps[app_name]
|
|
190
|
+
if app[:deployable_type] == "cron"
|
|
191
|
+
deployed_name = deployed_name(app)
|
|
192
|
+
puts_and_system("kubectl delete cronjob -l deployed-name=#{deployed_name}")
|
|
193
|
+
end
|
|
189
194
|
puts_and_system("kubectl apply -f .application-k8s-#{$env}-#{app_name}.yaml")
|
|
190
195
|
puts_and_system("git tag release-#{$env}-#{app_name}-#{Time.now.strftime("%Y-%m-%d-%H-%M-%S")} HEAD")
|
|
191
196
|
end
|
|
@@ -256,6 +261,10 @@ module Pfab
|
|
|
256
261
|
puts "Generated #{wrote}"
|
|
257
262
|
end
|
|
258
263
|
|
|
264
|
+
def deployed_name(app)
|
|
265
|
+
[app[:application], app[:deployable_type], app[:deployable]].join("-")
|
|
266
|
+
end
|
|
267
|
+
|
|
259
268
|
def get_current_sha
|
|
260
269
|
`git rev-parse --short --verify HEAD`.chomp
|
|
261
270
|
end
|
data/lib/pfab/version.rb
CHANGED
data/pfab.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: pfab 0.8.
|
|
5
|
+
# stub: pfab 0.8.4 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "pfab".freeze
|
|
9
|
-
s.version = "0.8.
|
|
9
|
+
s.version = "0.8.4"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib".freeze]
|
|
13
13
|
s.authors = ["Jeff Dwyer".freeze]
|
|
14
|
-
s.date = "2019-01-
|
|
14
|
+
s.date = "2019-01-26"
|
|
15
15
|
s.description = "k8s helper".freeze
|
|
16
16
|
s.email = "jdwyer@prefab.cloud".freeze
|
|
17
17
|
s.executables = ["pfab".freeze]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pfab
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeff Dwyer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-01-
|
|
11
|
+
date: 2019-01-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: commander
|