Class: FPM::Fry::Plugin::ScriptHelper::DSL

Inherits:
Struct
  • Object
show all
Defined in:
lib/fpm/fry/plugin/script_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#builderObject

Returns the value of attribute builder

Returns:

  • (Object)

    the current value of builder



121
122
123
# File 'lib/fpm/fry/plugin/script_helper.rb', line 121

def builder
  @builder
end

Instance Method Details

#after_install_or_upgrade(*scripts) ⇒ Object

before(install) => before_install:install before(upgrade) => before_install:upgrade after(install_or_upgrade) => after_install:configure before(remove_for_upgrade) => before_remove:upgrade before(remove) => before_remove:remove after(remove) => after_remove:remove after(remove_for_upgrade) => after_remove:upgrade



131
132
133
# File 'lib/fpm/fry/plugin/script_helper.rb', line 131

def after_install_or_upgrade(*scripts)
  find(:after_install).configure.push(*scripts)
end

#after_remove_entirely(*scripts) ⇒ Object



139
140
141
# File 'lib/fpm/fry/plugin/script_helper.rb', line 139

def after_remove_entirely(*scripts)
  find(:after_remove).remove.push(*scripts)
end

#before_remove_entirely(*scripts) ⇒ Object



135
136
137
# File 'lib/fpm/fry/plugin/script_helper.rb', line 135

def before_remove_entirely(*scripts)
  find(:before_remove).remove.push(*scripts)
end