Class: Mrsk::Commands::Builder::Base

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

Direct Known Subclasses

Multiarch, Native

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

#build_argsObject



10
11
12
# File 'lib/mrsk/commands/builder/base.rb', line 10

def build_args
  argumentize "--build-arg", args, redacted: true
end

#build_secretsObject



14
15
16
# File 'lib/mrsk/commands/builder/base.rb', line 14

def build_secrets
  argumentize "--secret", secrets.collect { |secret| [ "id", secret ] }
end

#pullObject



6
7
8
# File 'lib/mrsk/commands/builder/base.rb', line 6

def pull
  docker :pull, config.absolute_image
end