Class: Dapp::Build::Stage::From

Inherits:
Base
  • Object
show all
Defined in:
lib/dapp/build/stage/from.rb

Overview

From

Instance Attribute Summary

Attributes inherited from Base

#application, #next_stage, #prev_stage

Instance Method Summary collapse

Methods inherited from Base

#build!, #image, #initialize

Methods included from Helper::Trivia

class_to_lowercase, #class_to_lowercase, #delete_file, #kwargs, #to_mb

Methods included from Helper::Sha256

#hashsum, #sha256

Constructor Details

This class inherits a constructor from Dapp::Build::Stage::Base

Instance Method Details

#save_in_cache! ⇒ Object



12
13
14
15
# File 'lib/dapp/build/stage/from.rb', line 12

def save_in_cache!
  from_image.untag! if from_image.pulled?
  super
end

#signature ⇒ Object



6
7
8
9
10
# File 'lib/dapp/build/stage/from.rb', line 6

def signature
  hashsum [from_image_name,
           application.config._docker._from_cache_version,
           Dapp::BUILD_CACHE_VERSION]
end