Class: Redmine::Installer::Step::Base
- Inherits:
-
Object
- Object
- Redmine::Installer::Step::Base
- Includes:
- Utils
- Defined in:
- lib/redmine-installer/steps/base.rb
Overview
Base
Steps:
- prepare
-
used for argument validation
- up
-
actions
- final
-
for printing informations
- down
-
if something went wrong
Direct Known Subclasses
Backup, DatabaseConfig, EmailConfig, EnvCheck, Install, LoadPackage, MoveRedmine, RedmineRoot, Upgrade, Validation, WebserverConfig
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
-
#index ⇒ Object
Returns the value of attribute index.
-
#ran ⇒ Object
Returns the value of attribute ran.
Instance Method Summary collapse
- #down ⇒ Object
- #final ⇒ Object
-
#initialize(index, base) ⇒ Base
constructor
A new instance of Base.
- #load ⇒ Object
- #prepare ⇒ Object
- #print_footer ⇒ Object
- #print_header ⇒ Object
- #print_title ⇒ Object
- #redmine_plugins ⇒ Object
- #save ⇒ Object
- #up ⇒ Object
Methods included from Utils
Constructor Details
#initialize(index, base) ⇒ Base
Returns a new instance of Base.
26 27 28 29 30 |
# File 'lib/redmine-installer/steps/base.rb', line 26 def initialize(index, base) self.index = index self.base = base self.ran = false end |
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base.
23 24 25 |
# File 'lib/redmine-installer/steps/base.rb', line 23 def base @base end |
#index ⇒ Object
Returns the value of attribute index.
22 23 24 |
# File 'lib/redmine-installer/steps/base.rb', line 22 def index @index end |
#ran ⇒ Object
Returns the value of attribute ran.
24 25 26 |
# File 'lib/redmine-installer/steps/base.rb', line 24 def ran @ran end |
Instance Method Details
#down ⇒ Object
57 58 |
# File 'lib/redmine-installer/steps/base.rb', line 57 def down end |
#final ⇒ Object
54 55 |
# File 'lib/redmine-installer/steps/base.rb', line 54 def final end |
#load ⇒ Object
63 64 |
# File 'lib/redmine-installer/steps/base.rb', line 63 def load(*) end |
#prepare ⇒ Object
48 49 |
# File 'lib/redmine-installer/steps/base.rb', line 48 def prepare end |
#print_footer ⇒ Object
45 46 |
# File 'lib/redmine-installer/steps/base.rb', line 45 def end |
#print_header ⇒ Object
42 43 |
# File 'lib/redmine-installer/steps/base.rb', line 42 def print_header end |
#print_title ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/redmine-installer/steps/base.rb', line 32 def print_title title = '<bright><on_black><white>' title << "#{index}. " title << translate("step.#{self.class.class_name.underscore}.title" ) title << '</white></on_black></bright>' say(title, 1) end |
#redmine_plugins ⇒ Object
66 67 68 |
# File 'lib/redmine-installer/steps/base.rb', line 66 def redmine_plugins @redmine_plugins ||= _redmine_plugins end |
#save ⇒ Object
60 61 |
# File 'lib/redmine-installer/steps/base.rb', line 60 def save(*) end |
#up ⇒ Object
51 52 |
# File 'lib/redmine-installer/steps/base.rb', line 51 def up end |