Class: FPM::Fry::Plugin::ScriptHelper::BeforeInstall

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(*_) ⇒ 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

#installObject (readonly)

deb: $1 == install rpm: $1 == 1



50
51
52
# File 'lib/fpm/fry/plugin/script_helper.rb', line 50

def install
  @install
end

#upgradeObject (readonly)

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



54
55
56
# File 'lib/fpm/fry/plugin/script_helper.rb', line 54

def upgrade
  @upgrade
end