Class: FPM::Fry::Plugin::ScriptHelper::BeforeInstall
- Defined in:
- lib/fpm/fry/plugin/script_helper.rb
Instance Attribute Summary collapse
-
#install ⇒ Object
readonly
deb: $1 == install rpm: $1 == 1.
-
#upgrade ⇒ Object
readonly
deb: $1 == upgrade rpm: $1 >= 2.
Attributes inherited from Script
Instance Method Summary collapse
-
#initialize(*_) ⇒ BeforeInstall
constructor
A new instance of BeforeInstall.
Methods inherited from Script
Constructor Details
#initialize(*_) ⇒ BeforeInstall
Returns a new instance of BeforeInstall.
56 57 58 59 60 |
# File 'lib/fpm/fry/plugin/script_helper.rb', line 56 def initialize(*_) super @install = [] @upgrade = [] end |
Instance Attribute Details
#install ⇒ Object (readonly)
deb: $1 == install rpm: $1 == 1
50 51 52 |
# File 'lib/fpm/fry/plugin/script_helper.rb', line 50 def install @install end |
#upgrade ⇒ Object (readonly)
deb: $1 == upgrade rpm: $1 >= 2
54 55 56 |
# File 'lib/fpm/fry/plugin/script_helper.rb', line 54 def upgrade @upgrade end |