Sha256: 30db72033044a8fdb9bd66b9af86a2817de9cbcf7050a3459e8f89ff6b2bee30

Contents?: true

Size: 322 Bytes

Versions: 21

Compression:

Stored size: 322 Bytes

Contents

class Kubes::CLI
  class Deploy < Base
    def run
      Build.new(@options).run if build?
      Apply.new(@options).run # also calls Compile
    end

    def build?
      return false if @options[:build] == false || @options[:image]
      @options[:resource].nil? || @options[:resource] == "deployment"
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
kubes-0.2.0 lib/kubes/cli/deploy.rb