    # File lib/chef/provider/deploy.rb, line 161
          def migrate
            run_symlinks_before_migrate

            if @new_resource.migrate
              enforce_ownership

              environment = @new_resource.environment
              env_info = environment && environment.map do |key_and_val|
                "#{key_and_val.first}='#{key_and_val.last}'"
              end.join(" ")

              Chef::Log.info "#{@new_resource} migrating #{@new_resource.user} with environment #{env_info}"
              run_command(run_options(:command => @new_resource.migration_command, :cwd=>release_path, :command_log_level => :info))
            end
          end