Class: Kubes::CLI::Build
Instance Method Summary collapse
Methods inherited from Base
#compile, #initialize, #pod_name
Methods included from Logging
Constructor Details
This class inherits a constructor from Kubes::CLI::Base
Instance Method Details
#build? ⇒ Boolean
9 10 11 12 |
# File 'lib/kubes/cli/build.rb', line 9 def build? return false if [:build] == false || [:image] || Kubes.config.image [:resource].nil? || [:resource] == "deployment" end |
#run ⇒ Object
3 4 5 6 7 |
# File 'lib/kubes/cli/build.rb', line 3 def run return unless build? Kubes::Docker.new(, "build").run Kubes::Docker.new(, "push").run end |