class ConfigmonkeyCli::Application::ManifestAction::Custom
Public Instance Methods
destructive()
click to toggle source
# File lib/configmonkey_cli/application/manifest_actions/custom.rb, line 24 def destructive @args.each do |scope, block| block.call(self, manifest) if scope == :always || scope == :destructive end end
init(label = nil, &block)
click to toggle source
# File lib/configmonkey_cli/application/manifest_actions/custom.rb, line 5 def init label = nil, &block @label = label block.call(Proxy.new(self)) if block end
inspect()
click to toggle source
Calls superclass method
ConfigmonkeyCli::Application::ManifestAction::Base#inspect
# File lib/configmonkey_cli/application/manifest_actions/custom.rb, line 10 def inspect @label ? super.gsub("Custom @args", "Custom @label=#{@label} @args") : super end
prepare()
click to toggle source
# File lib/configmonkey_cli/application/manifest_actions/custom.rb, line 14 def prepare status :proc, :yellow, (@label || "unlabeled custom block"), :blue end
simulate()
click to toggle source
# File lib/configmonkey_cli/application/manifest_actions/custom.rb, line 18 def simulate @args.each do |scope, block| block.call(self, manifest) if scope == :always || scope == :simulate end end