seira 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/seira.rb +11 -0
- data/lib/seira/version.rb +1 -1
- 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: 00d08df8b0745e2685212efae00e131197ce665fbf90afb3cd7a72b150450e20
|
4
|
+
data.tar.gz: 4c81a2a27b8edbe069375535b4848ad17d38cf2b803679a939ff1f970d3a6d0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0dc529337d4d8dc6f5826953d111a7f1d18d6c5558e262c01b7a50b4b064b1e4054edfee62c5127564b3aca1490bc4ccbcb3280f8bc065215ec39e4cd01c5f5
|
7
|
+
data.tar.gz: ec8c5a215f0b0382bc55c1207055377a9bec7cffba0a2882783eb0b3619e704d7859d094ddafd0065ef88f16ebc854983a0702e3635783c635b60e476019c405
|
data/lib/seira.rb
CHANGED
@@ -145,6 +145,17 @@ module Seira
|
|
145
145
|
end
|
146
146
|
|
147
147
|
def base_validations
|
148
|
+
# gcloud and kubectl is required, hard error if not installed
|
149
|
+
unless system("gcloud version > /dev/null 2>&1")
|
150
|
+
puts "Gcloud library not installed properly. Please install `gcloud` before using seira.".red
|
151
|
+
exit(1)
|
152
|
+
end
|
153
|
+
|
154
|
+
unless system("kubectl version > /dev/null 2>&1")
|
155
|
+
puts "Kubectl library not installed properly. Please install `kubectl` before using seira.".red
|
156
|
+
exit(1)
|
157
|
+
end
|
158
|
+
|
148
159
|
# The first arg must always be the cluster. This ensures commands are not run by
|
149
160
|
# accident on the wrong kubernetes cluster or gcloud project.
|
150
161
|
exit(1) unless Seira::Cluster.new(action: nil, args: nil, context: nil, settings: settings).switch(target_cluster: cluster, verbose: false)
|
data/lib/seira/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seira
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Ringwelski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|