Class: Dapp::Builder::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/dapp/builder/base.rb

Overview

Base

Direct Known Subclasses

Chef, None, Shell

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dimg) ⇒ Base

Returns a new instance of Base.



7
8
9
# File 'lib/dapp/builder/base.rb', line 7

def initialize(dimg)
  @dimg = dimg
end

Instance Attribute Details

#dimgObject (readonly)

Returns the value of attribute dimg.



5
6
7
# File 'lib/dapp/builder/base.rb', line 5

def dimg
  @dimg
end

Instance Method Details

#before_build_checkObject



11
12
# File 'lib/dapp/builder/base.rb', line 11

def before_build_check
end

#before_dimg_should_be_built_checkObject



14
15
# File 'lib/dapp/builder/base.rb', line 14

def before_dimg_should_be_built_check
end

#before_install(_image) ⇒ Object



21
22
23
# File 'lib/dapp/builder/base.rb', line 21

def before_install(_image)
  raise
end

#before_install?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/dapp/builder/base.rb', line 17

def before_install?
  false
end

#before_install_checksumObject



25
26
27
# File 'lib/dapp/builder/base.rb', line 25

def before_install_checksum
  raise
end

#before_setup(_image) ⇒ Object



33
34
35
# File 'lib/dapp/builder/base.rb', line 33

def before_setup(_image)
  raise
end

#before_setup?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/dapp/builder/base.rb', line 29

def before_setup?
  false
end

#before_setup_checksumObject



37
38
39
# File 'lib/dapp/builder/base.rb', line 37

def before_setup_checksum
  raise
end

#build_artifact(_image) ⇒ Object



69
70
71
# File 'lib/dapp/builder/base.rb', line 69

def build_artifact(_image)
  raise
end

#build_artifact?Boolean

Returns:

  • (Boolean)


65
66
67
# File 'lib/dapp/builder/base.rb', line 65

def build_artifact?
  false
end

#build_artifact_checksumObject



73
74
75
# File 'lib/dapp/builder/base.rb', line 73

def build_artifact_checksum
  raise
end

#chef_cookbooks(_image) ⇒ Object



77
78
# File 'lib/dapp/builder/base.rb', line 77

def chef_cookbooks(_image)
end

#chef_cookbooks_checksumObject



80
81
82
# File 'lib/dapp/builder/base.rb', line 80

def chef_cookbooks_checksum
  []
end

#install(_image) ⇒ Object



45
46
47
# File 'lib/dapp/builder/base.rb', line 45

def install(_image)
  raise
end

#install?Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/dapp/builder/base.rb', line 41

def install?
  false
end

#install_checksumObject



49
50
51
# File 'lib/dapp/builder/base.rb', line 49

def install_checksum
  raise
end

#setup(_image) ⇒ Object



57
58
59
# File 'lib/dapp/builder/base.rb', line 57

def setup(_image)
  raise
end

#setup?Boolean

Returns:

  • (Boolean)


53
54
55
# File 'lib/dapp/builder/base.rb', line 53

def setup?
  false
end

#setup_checksumObject



61
62
63
# File 'lib/dapp/builder/base.rb', line 61

def setup_checksum
  raise
end