Class: Kamal::Commands::Builder::Native

Inherits:
Base show all
Defined in:
lib/kamal/commands/builder/native.rb

Direct Known Subclasses

Cached, Remote

Defined Under Namespace

Classes: Cached, Remote

Constant Summary

Constants inherited from Kamal::Commands::Base

Kamal::Commands::Base::DOCKER_HEALTH_STATUS_FORMAT

Instance Attribute Summary

Attributes inherited from Kamal::Commands::Base

#config

Instance Method Summary collapse

Methods inherited from Base

#build_context, #build_options, #clean, #pull, #validate_image

Methods inherited from Kamal::Commands::Base

#container_id_for, #initialize, #make_directory, #make_directory_for, #remove_directory, #run_over_ssh

Constructor Details

This class inherits a constructor from Kamal::Commands::Base

Instance Method Details

#createObject



2
3
4
# File 'lib/kamal/commands/builder/native.rb', line 2

def create
  # No-op on native without cache
end

#infoObject



10
11
12
# File 'lib/kamal/commands/builder/native.rb', line 10

def info
  # No-op on native
end

#pushObject



14
15
16
17
18
19
# File 'lib/kamal/commands/builder/native.rb', line 14

def push
  combine \
    docker(:build, *build_options, build_context),
    docker(:push, config.absolute_image),
    docker(:push, config.latest_image)
end

#removeObject



6
7
8
# File 'lib/kamal/commands/builder/native.rb', line 6

def remove
  # No-op on native without cache
end