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



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

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



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

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

#after_remove_entirely(*scripts) ⇒ Object



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

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

#before_remove_entirely(*scripts) ⇒ Object



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

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