Class: Redmine::Installer::Step::Base
- Inherits:
-
Object
- Object
- Redmine::Installer::Step::Base
show all
- Includes:
- Utils
- Defined in:
- lib/redmine-installer/steps/base.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods included from Utils
included
Constructor Details
#initialize(index, base) ⇒ Base
Returns a new instance of Base.
10
11
12
13
14
|
# File 'lib/redmine-installer/steps/base.rb', line 10
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.
7
8
9
|
# File 'lib/redmine-installer/steps/base.rb', line 7
def base
@base
end
|
#index ⇒ Object
Returns the value of attribute index.
6
7
8
|
# File 'lib/redmine-installer/steps/base.rb', line 6
def index
@index
end
|
#ran ⇒ Object
Returns the value of attribute ran.
8
9
10
|
# File 'lib/redmine-installer/steps/base.rb', line 8
def ran
@ran
end
|
Instance Method Details
#down ⇒ Object
38
39
|
# File 'lib/redmine-installer/steps/base.rb', line 38
def down
end
|
#final_step ⇒ Object
32
33
|
# File 'lib/redmine-installer/steps/base.rb', line 32
def final_step
end
|
#load ⇒ Object
44
45
|
# File 'lib/redmine-installer/steps/base.rb', line 44
def load(*)
end
|
29
30
|
# File 'lib/redmine-installer/steps/base.rb', line 29
def
end
|
26
27
|
# File 'lib/redmine-installer/steps/base.rb', line 26
def
end
|
#print_title ⇒ Object
16
17
18
19
20
21
22
23
24
|
# File 'lib/redmine-installer/steps/base.rb', line 16
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
47
48
49
|
# File 'lib/redmine-installer/steps/base.rb', line 47
def redmine_plugins
@redmine_plugins ||= _redmine_plugins
end
|
#save ⇒ Object
41
42
|
# File 'lib/redmine-installer/steps/base.rb', line 41
def save(*)
end
|
#up ⇒ Object
35
36
|
# File 'lib/redmine-installer/steps/base.rb', line 35
def up
end
|