Class: InitExporter::Helpers::Init::BaseBackend
- Inherits:
-
Object
- Object
- InitExporter::Helpers::Init::BaseBackend
show all
- Defined in:
- lib/init_exporter/helpers/init/base_backend.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of BaseBackend.
5
6
7
|
# File 'lib/init_exporter/helpers/init/base_backend.rb', line 5
def initialize(ssh)
@ssh = ssh
end
|
Instance Method Details
#dry_run(app_name, procfile_path) ⇒ Object
13
14
15
|
# File 'lib/init_exporter/helpers/init/base_backend.rb', line 13
def dry_run(app_name, procfile_path)
run_init_exporter(app_name, '-p', procfile_path, '--dry-start')
end
|
#init_type ⇒ Object
21
22
23
|
# File 'lib/init_exporter/helpers/init/base_backend.rb', line 21
def init_type
raise NotImplementedError
end
|
#install(app_name, procfile_path) ⇒ Object
9
10
11
|
# File 'lib/init_exporter/helpers/init/base_backend.rb', line 9
def install(app_name, procfile_path)
run_init_exporter(app_name, '-p', procfile_path)
end
|
#uninstall(app_name) ⇒ Object
17
18
19
|
# File 'lib/init_exporter/helpers/init/base_backend.rb', line 17
def uninstall(app_name)
run_init_exporter(app_name, '-c')
end
|