Class: FPM::Fry::Plugin::ScriptHelper::BeforeRemove

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

Instance Attribute Summary collapse

Attributes inherited from Script

#renderer

Instance Method Summary collapse

Methods inherited from Script

#name, #to_s

Constructor Details

#initialize(*_) ⇒ BeforeRemove

Returns a new instance of BeforeRemove.



79
80
81
82
83
# File 'lib/fpm/fry/plugin/script_helper.rb', line 79

def initialize(*_)
  super
  @remove = []
  @upgrade = []
end

Instance Attribute Details

#removeObject (readonly)

deb: $1 == remove rpm: $1 == 0



87
88
89
# File 'lib/fpm/fry/plugin/script_helper.rb', line 87

def remove
  @remove
end

#upgradeObject (readonly)

deb: $1 == upgrade rpm: $1 >= 1



91
92
93
# File 'lib/fpm/fry/plugin/script_helper.rb', line 91

def upgrade
  @upgrade
end