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.4.7 lib/kubes/cli/deploy.rb
kubes-0.4.6 lib/kubes/cli/deploy.rb
kubes-0.4.5 lib/kubes/cli/deploy.rb
kubes-0.4.4 lib/kubes/cli/deploy.rb
kubes-0.4.3 lib/kubes/cli/deploy.rb
kubes-0.4.2 lib/kubes/cli/deploy.rb
kubes-0.4.1 lib/kubes/cli/deploy.rb
kubes-0.4.0 lib/kubes/cli/deploy.rb
kubes-0.3.5 lib/kubes/cli/deploy.rb
kubes-0.3.4 lib/kubes/cli/deploy.rb
kubes-0.3.3 lib/kubes/cli/deploy.rb
kubes-0.3.2 lib/kubes/cli/deploy.rb
kubes-0.3.1 lib/kubes/cli/deploy.rb
kubes-0.3.0 lib/kubes/cli/deploy.rb
kubes-0.2.6 lib/kubes/cli/deploy.rb
kubes-0.2.5 lib/kubes/cli/deploy.rb
kubes-0.2.4 lib/kubes/cli/deploy.rb
kubes-0.2.3 lib/kubes/cli/deploy.rb
kubes-0.2.2 lib/kubes/cli/deploy.rb
kubes-0.2.1 lib/kubes/cli/deploy.rb