Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

Don't replace PhpFramework :before_migrate features #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions providers/php.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ def load_current_resource
end
end

action :before_migrate do
if(new_resource.replace_database_info_file)
replace_db_info!
end
end

protected

def search_for_database
host = new_resource.find_database_server(new_resource.database_master_role)
new_resource.database[:host] = host if host
end

def run_before_migrate_setup
if(new_resource.replace_database_info_file)
replace_db_info!
end
end

def create_configuration_files
if(new_resource.write_settings_file)
search_for_database
Expand Down