class Dapp::Dimg::Config::Directive::Shell::Dimg
Attributes
_before_install[R]
_before_setup[R]
_install[R]
_setup[R]
_version[R]
Public Class Methods
stage_command_generator(stage)
click to toggle source
# File lib/dapp/dimg/config/directive/shell/dimg.rb, line 14 def self.stage_command_generator(stage) define_method stage do |&blk| (instance_variable_get("@_#{stage}") || StageCommand.new(dapp: dapp)).tap do |variable| instance_variable_set("@_#{stage}", directive_eval(variable, &blk)) end end define_method "_#{stage}_command" do return [] if (variable = instance_variable_get("@_#{stage}")).nil? variable._run end define_method "_#{stage}_version" do return [] if (variable = instance_variable_get("@_#{stage}")).nil? variable._version end end
Public Instance Methods
clone_to_artifact()
click to toggle source
# File lib/dapp/dimg/config/directive/shell/dimg.rb, line 37 def clone_to_artifact _clone_to Artifact.new(dapp: dapp) end
empty?()
click to toggle source
# File lib/dapp/dimg/config/directive/shell/dimg.rb, line 33 def empty? (_before_install_command + _before_setup_command + _install_command + _setup_command).empty? end
version(value)
click to toggle source
# File lib/dapp/dimg/config/directive/shell/dimg.rb, line 10 def version(value) sub_directive_eval { @_version = value } end