Class: LearnDoctor::HealthCheck::StepInstaller
- Inherits:
-
Object
- Object
- LearnDoctor::HealthCheck::StepInstaller
- Defined in:
- lib/learn_doctor/health_check/step_installer.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#password_required ⇒ Object
readonly
Returns the value of attribute password_required.
-
#result ⇒ Object
Returns the value of attribute result.
-
#step ⇒ Object
readonly
Returns the value of attribute step.
-
#sudo ⇒ Object
readonly
Returns the value of attribute sudo.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(step) ⇒ StepInstaller
constructor
A new instance of StepInstaller.
Constructor Details
#initialize(step) ⇒ StepInstaller
Returns a new instance of StepInstaller.
7 8 9 10 11 12 |
# File 'lib/learn_doctor/health_check/step_installer.rb', line 7 def initialize(step) @step = step @title = step[:title] @sudo = step[:sudo] @password_required = step[:password] end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
5 6 7 |
# File 'lib/learn_doctor/health_check/step_installer.rb', line 5 def file @file end |
#password_required ⇒ Object (readonly)
Returns the value of attribute password_required.
4 5 6 |
# File 'lib/learn_doctor/health_check/step_installer.rb', line 4 def password_required @password_required end |
#result ⇒ Object
Returns the value of attribute result.
5 6 7 |
# File 'lib/learn_doctor/health_check/step_installer.rb', line 5 def result @result end |
#step ⇒ Object (readonly)
Returns the value of attribute step.
4 5 6 |
# File 'lib/learn_doctor/health_check/step_installer.rb', line 4 def step @step end |
#sudo ⇒ Object (readonly)
Returns the value of attribute sudo.
4 5 6 |
# File 'lib/learn_doctor/health_check/step_installer.rb', line 4 def sudo @sudo end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/learn_doctor/health_check/step_installer.rb', line 4 def title @title end |
Instance Method Details
#execute ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/learn_doctor/health_check/step_installer.rb', line 14 def execute set_file run_install_for_step print_result unlink_file! self end |