Class: Mrsk::Commands::Builder::Native

Inherits:
Mrsk::Commands::Base show all
Defined in:
lib/mrsk/commands/builder/native.rb

Instance Attribute Summary

Attributes inherited from Mrsk::Commands::Base

#config

Instance Method Summary collapse

Methods inherited from Mrsk::Commands::Base

#initialize

Constructor Details

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

Instance Method Details

#createObject



4
5
6
# File 'lib/mrsk/commands/builder/native.rb', line 4

def create
  # No-op on native
end

#infoObject



22
23
24
# File 'lib/mrsk/commands/builder/native.rb', line 22

def info
  # No-op on native
end

#pullObject



18
19
20
# File 'lib/mrsk/commands/builder/native.rb', line 18

def pull
  docker :pull, config.absolute_image
end

#pushObject



12
13
14
15
16
# File 'lib/mrsk/commands/builder/native.rb', line 12

def push
  combine \
    docker(:build, "-t", config.absolute_image, "."),
    docker(:push, config.absolute_image)
end

#removeObject



8
9
10
# File 'lib/mrsk/commands/builder/native.rb', line 8

def remove
  # No-op on native
end