hoobskubes 0.0.6 → 0.0.7

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hoobskubes.rb +11 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26730ffa963e7227f1f0bf54e0f7ec33f0c4483316ffd3977cd6d360309377c9
4
- data.tar.gz: 3ebcf7d267042cfa6a8879a7961e6bdc98049779b52d97266b072cd66df9bd0a
3
+ metadata.gz: 8d03192185dd89f8076c4318368295c235e14ee2d09dea3742ceebc3081bf43a
4
+ data.tar.gz: 8c0259de196a1a8773f69ee2ca91d1b07b6d50b1ab5cb47f6f9d5148bb6998b5
5
5
  SHA512:
6
- metadata.gz: 772aaeeaa648c67c8cf6d3c9a074407bd910a9069f972056b3ce753bff8da70444dfdfdedeb28a326d1f63428f1a19f11878807d925a9b2596cc624c0678712e
7
- data.tar.gz: ba0337fc38a3dc4bea2dda5876c269702e0d8956d55facaae6584ab86aee598e356df2a76fabd086a7f65c441941be48d31197fd6c330e418e3e4e6894ff01ea
6
+ metadata.gz: aa73a46f6a2733b0c7cd7216cf3fdd8f285c54c45d6ee9bfdab092a23680ef892359a14d9b12ae5398cdaf1683363bad5c186e12f777da60dfb9b5d300d921bb
7
+ data.tar.gz: e9775cd075c8feced560df20f3c677f924e1d86eb09afca1599cdb469abdea7f7814107f620ffb81caa0027815bad487aaf2fc5bb34b9c29d178d30851b7ab0e
data/lib/hoobskubes.rb CHANGED
@@ -96,6 +96,7 @@ class HoobsKubes
96
96
  @@options.status = false
97
97
  @@options.all = false
98
98
  @@options.change = false
99
+ @@options.resource = ""
99
100
 
100
101
  OptionParser.new do |opts|
101
102
  opts.banner = "Usage: deploy.rb [options]"
@@ -111,12 +112,18 @@ class HoobsKubes
111
112
  opts.on("-c", "--change-context", "Change context without deploying") do |v|
112
113
  @@options.change = true
113
114
  end
115
+
116
+ opts.on("-r", "--resource [RESOURCE]", "Diplay status for only a specific resource") do |v|
117
+ @@options.resource = v
118
+ end
114
119
  end.parse!
115
120
 
116
- if @@options.status or @@options.change
117
- change_context if @@options.change
118
- do_status if @@options.status
119
- else
121
+ change_context if @@options.change
122
+ if @@options.resource != ""
123
+ pretty_print_table(@@options.resource)
124
+ elsif @@options.status
125
+ do_status
126
+ elsif !@@options.change
120
127
  do_deploy
121
128
  end
122
129
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoobskubes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Colburn