hoobskubes 0.0.2 → 0.0.3
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/hoobskubes.rb +20 -11
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9ad053106fce651e43b7531341b962de354b2c0936ff91c25fcab810bad5723d
|
|
4
|
+
data.tar.gz: 5f742b7d8e4dc12c5cd0861e6e8413b44cf4020daa5e7ea87aa7f76cbe3c9b4f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cdf525663bdb3ef6b2d44eb76f76bf00525d7045e1188d1053fc747b314483cee99e510bd0084b32274dbadac9ab01387f75039cb9b02f10a841b517a32be440
|
|
7
|
+
data.tar.gz: 84181bc7d48307336c4536092dcebc6de5d75f49e161109c2f6a692cf22f32210bcaf096a52ee9c10f1daa596f881bc6ddb23613c42d75bc535ecc3f34a80016
|
data/lib/hoobskubes.rb
CHANGED
|
@@ -66,21 +66,31 @@ class HoobsKubes
|
|
|
66
66
|
end
|
|
67
67
|
end
|
|
68
68
|
|
|
69
|
+
def self.do_status
|
|
70
|
+
log "#{current_context} Cluster Status:".bold.cyan
|
|
71
|
+
status
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
def self.do_deploy
|
|
75
|
+
begin
|
|
76
|
+
log "Starting deploy".bold.cyan
|
|
77
|
+
deploy
|
|
78
|
+
log "Done!".bold.green
|
|
79
|
+
rescue
|
|
80
|
+
log "Error!".bold.red
|
|
81
|
+
raise
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
do_status
|
|
85
|
+
end
|
|
86
|
+
|
|
69
87
|
def self.run(dir)
|
|
70
88
|
@@dir = dir
|
|
71
89
|
|
|
72
90
|
if ARGV.length == 0
|
|
73
|
-
|
|
74
|
-
log "Starting deploy".bold.cyan
|
|
75
|
-
deploy
|
|
76
|
-
log "Done!".bold.green
|
|
77
|
-
status
|
|
78
|
-
rescue
|
|
79
|
-
log "Error!".bold.red
|
|
80
|
-
raise
|
|
81
|
-
end
|
|
91
|
+
do_deploy
|
|
82
92
|
elsif ARGV.include? "-s" or ARGV.include? "--status"
|
|
83
|
-
|
|
93
|
+
do_status
|
|
84
94
|
elsif ARGV.include? "-c" or ARGV.include? "--change-context"
|
|
85
95
|
change_context
|
|
86
96
|
elsif ARGV.include? "--help"
|
|
@@ -90,7 +100,6 @@ class HoobsKubes
|
|
|
90
100
|
log "Options:"
|
|
91
101
|
log " --help : This message"
|
|
92
102
|
log " -s --status : Display only status"
|
|
93
|
-
|
|
94
103
|
else
|
|
95
104
|
log "Unknown usage: deploy.rb #{ARGV.join " "}"
|
|
96
105
|
end
|