Sha256: 19a9e0f9c9984b0723faeaf7a23c286b51101a9bbb9db9f7968fc095f7d276c8

Contents?: true

Size: 685 Bytes

Versions: 22

Compression:

Stored size: 685 Bytes

Contents

class Ufo::CLI
  class Build < Base
    def build
      docker
      task_definition
      Ufo::Cfn::Stack.new(@options).build
    end
    alias_method :all, :build

    def for_deploy
      docker
      task_definition
    end

    def task_definition
      Ufo::TaskDefinition::Builder.new(@options).build
    end

    def docker
      return if @options[:docker] == false
      # The config.docker.quiet only effects: ufo ship, not ufo docker build
      quiet = Ufo.config.ship.docker.quiet
      o = @options.dup.merge(quiet: quiet)
      builder = Ufo::Docker::Builder.new(o)
      builder.build
      pusher = Ufo::Docker::Pusher.new(nil, o)
      pusher.push
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
ufo-6.2.5 lib/ufo/cli/build.rb
ufo-6.2.4 lib/ufo/cli/build.rb
ufo-6.2.3 lib/ufo/cli/build.rb
ufo-6.2.2 lib/ufo/cli/build.rb
ufo-6.2.1 lib/ufo/cli/build.rb
ufo-6.2.0 lib/ufo/cli/build.rb
ufo-6.1.5 lib/ufo/cli/build.rb
ufo-6.1.4 lib/ufo/cli/build.rb
ufo-6.1.3 lib/ufo/cli/build.rb
ufo-6.1.2 lib/ufo/cli/build.rb
ufo-6.1.1 lib/ufo/cli/build.rb
ufo-6.1.0 lib/ufo/cli/build.rb
ufo-6.0.9 lib/ufo/cli/build.rb
ufo-6.0.8 lib/ufo/cli/build.rb
ufo-6.0.7 lib/ufo/cli/build.rb
ufo-6.0.6 lib/ufo/cli/build.rb
ufo-6.0.5 lib/ufo/cli/build.rb
ufo-6.0.4 lib/ufo/cli/build.rb
ufo-6.0.3 lib/ufo/cli/build.rb
ufo-6.0.2 lib/ufo/cli/build.rb